In -SET, when you supply an amper variable as the final arg of a function, the length of its current value is used, and the output value will be adjusted, Procrusteanly (padded or truncated), to fit. Since you initialized the 5 receiving variables to '' or ' ', their length was set to 1, so GETTOK acted as if you explicitly coded a format of A1 as the final arg, and truncated its result accordingly.
(The minimum length of an amper var's value is 1, so '' has the same effect as ' ')
Bump the length of their default values and it works:
@JG: Nope, if you quote the name of an amper var like that (in the RHS of a -SET), the name will be interpretted literally, & and all, and you wind up with
1: (&A)
2: ( )
3: ( )
4: ( )
5: ( )
!
June 14, 2012, 08:51 AM
<JG>
Absolutely correct, Sloppy coding.
It should have been '&ARRAY.EVAL'
The quotes are required if you have the possibility of a space in the string