This is my second post on the same subject but I may have been vague in my first post so I did not get any reaction.
Am new to AS scripting and need some way to get around a problem. I need something like an indexing method to fill up a list with some maximum value specified by the user. This maximum value also defines the length of the list. For example, if the user inputs a max value of 10, I also want the length of the list to be 10 items.
I have tried different ways but…I can’t seem to change the value of the list unless I set the value first and the length of the length at the start. Else, the list variable is “undefined” and I get an error message.
For example, I can define a list like: set some_List to {10, 15, 20, 30, 40}. It’s alright but that’s not what I want to do in the first place.
I am looking for something like the old variable indexing method and then set the values to the array items automatically in a repeat statement.
Is there a way to do this or some workaround the problem? I have found a way but it needs packing the list with numbers as text items, then parsing them into groups of digits that I want, then coercing the text back to numbers. But this is a long process and wasteful of code.
Please help. Thanks in advance.