Getting length of array label

Getting length of array label

christine_b
Not applicable
63 Views
2 Replies
Message 1 of 3

Getting length of array label

christine_b
Not applicable

[ FlexSim 17.2.5 ]

I have an item with an array label that typically has 18 elements. If, however, the item is released early then the array label will have less than 18 elements. I am looking to use a for loop to access the elements in the array but I need to know the length/size of the array. Something along the lines of "arraysize" or "array.length"?

I have searched the help forums and the User Manual but to no avail.

Any help would be much appreciated. Thanks!

0 Likes
Accepted solutions (1)
64 Views
2 Replies
Replies (2)
Message 2 of 3

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

Your guess is right. array.length is the property which tells you the number of elements in an array.

10581-array-length-manual.jpg

You find the classes, commands, methods, properties under the FlexScript Class reference in the User Manual.

Message 3 of 3

christine_b
Not applicable

Ooh - got it!

Thanks for pointing that out.

0 Likes