Hopefully a quick question :
I'm trying to shift the elements in an array of UDT's (25 elements). The base UDT looks someting like this, but much longer:
Name - STRING
Age - INT
Active - BOOL
The array is PEOPLE[25] of the UDT listed above.
I thought the FAL would work great to shift them up, but it doesn't work:
FAL
Control : CTRL
Length : 24
Position : 0
Mode : ALL
Destination : PEOPLE[CTRL.POS+1]
Expr : PEOPLE[CTRL.POS]
That should have shifted everything up by 1 element, overwriting the last element in the array. But alas, it doesn't work.
Any ideas other than writing out For Next loops for every element?
Thanks!
I'm trying to shift the elements in an array of UDT's (25 elements). The base UDT looks someting like this, but much longer:
Name - STRING
Age - INT
Active - BOOL
The array is PEOPLE[25] of the UDT listed above.
I thought the FAL would work great to shift them up, but it doesn't work:
FAL
Control : CTRL
Length : 24
Position : 0
Mode : ALL
Destination : PEOPLE[CTRL.POS+1]
Expr : PEOPLE[CTRL.POS]
That should have shifted everything up by 1 element, overwriting the last element in the array. But alas, it doesn't work.
Any ideas other than writing out For Next loops for every element?
Thanks!