01-02-2024, 09:21 PM
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??
EXECUTE "DIM SHARED DataHistory" + STR$(Number) + "(" + STR$(EVENT(Number)) + ") AS INTEGER"
Is Execute in some other basic syntax??