On Tuesday, 13 March 2012 17:37:41 UTC-4, comp.lang.smalltalk wrote:
>
> ARRAY.TEST = TRIM(ARRAY.TEST,@FM)
>
>
I believe that will only remove the first occurrence of a single FM from
the array. Not what the OP wants at all.
Considering that I suppose it's possible to have multiple back-to-back
nulls in the array, the OP could opt for Mark Hogden's first, reverse loop
solution, or save a few cycles and just process the array with the Nulls
included, but checking for their existence along the way.
MAXX = DCOUNT(TEST.ARRAY,@FM)
FOR NDX = 1 TO MAXX
IF TEST.ARRAY<NDX> # "" THEN
...STATEMENTS
END
NEXT NDX
--
Kevin Powick
--
Kevin Powick
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en