question

Christine B avatar image
0 Likes"
Christine B asked Christine B commented

Getting length of array label

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!

FlexSim 17.2.5
arraylabel arrayarraysizearray label
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Christine B commented

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

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


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Christine B avatar image Christine B commented ·

Ooh - got it!

Thanks for pointing that out.

0 Likes 0 ·