I've just updated from 20.1.3 to the newest version.
At some point in my model I need to access a 2D array.
I simply use bracket syntax, MyArray[row][col] but FlexSim throws this error:
FlexScript exception: Invalid variant type used with [] array operator
It used to work just fine.
Specifically I use two labels of a 3D object as the indices of the 2D-array. Something like this:
int duration = Durations[room.Day][room.Booking_number];
where the labels "Day" and "Booking_number" were created as:
room.Day = 1; room.Booking_number = 1;
I tried to convert the labels to variant:
Variant row = room.Day; Variant col = room.Booking_number; int duration = Durations[room.Day][room.Booking_number];
but without any success.