08-03-2022 05:17 AM
Hello
I am trying to programmatically define array length but I encounter some problems:
What I do is
1. Define empty string array "resArray"
2. get define variable INT BB as the array length
3. run the command in a statement:
SetArrayBounds(Locals.resArray ,"[0]",[ Str (Locals.BB-1 ) ] )
When I check the syntax I get an error:
How can I dynamically define the array length?
Thanks!
Gil,
08-17-2022 03:56 AM
Hello Gil
You can run the command SetNumElements(Locals.resArray, Locals.BB) in your statement step.
I hope this solves your problem.
Chris