Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Execute ???
#1
Has anyone head of a command "EXECUTE" in basic?? I have been trying to write a routine which will create a number of arrays with similar names however the name is to end with a unique number. After creating the arrays, each one is to have a difference upper limit. For example, the array names would look like - Array1(1 to 25), Array2(1 to 85), Array3(1 to 15) etc. I have tried this before and there is no way QB64PE can create array names on the fly using concatenation. Recently I was told I needed to use EXECUTE and this would create a new array name with a number concated to it. The example I was given is 

 EXECUTE "DIM SHARED DataHistory" + STR$(Number) + "(" + STR$(EVENT(Number)) + ") AS INTEGER"

Is Execute in some other basic syntax??
Reply


Messages In This Thread
Execute ??? - by Dimster - 01-02-2024, 09:21 PM
RE: Execute ??? - by bplus - 01-02-2024, 10:04 PM
RE: Execute ??? - by TerryRitchie - 01-02-2024, 10:38 PM
RE: Execute ??? - by SMcNeill - 01-02-2024, 10:46 PM
RE: Execute ??? - by SMcNeill - 01-02-2024, 10:53 PM
RE: Execute ??? - by bplus - 01-03-2024, 03:31 AM
RE: Execute ??? - by Dimster - 01-03-2024, 01:05 PM
RE: Execute ??? - by bplus - 01-03-2024, 04:59 PM
RE: Execute ??? - by aurel - 01-03-2024, 06:39 PM
RE: Execute ??? - by aurel - 01-03-2024, 06:46 PM
RE: Execute ??? - by Unatic - 01-03-2024, 06:57 PM
RE: Execute ??? - by Dimster - 01-03-2024, 09:52 PM
RE: Execute ??? - by aurel - 01-04-2024, 07:36 AM



Users browsing this thread: 2 Guest(s)