On Tue, 26 Oct 2004 13:26:22 -0700, you wrote:
<snip>
>Working the other way, this is a fast way to process a large number of
>attributes:
>
>ACOUNT = DCOUNT(A,@AM)
>FOR K = 1 TO ACOUNT
> ONE.LINE = A<1>
> DEL A<1>
> [[DO STUFF WITH ONE.LINE]]
>NEXT K
>
>Because it just scoops attr 1 off the top, and then deletes it, it's much
>faster than making subsequent trips down the attrs to find the next in line!
>I use this when I'm doing a PAGE 2 OF 999 pages type of thing as a internal
>buffer for print jobs.
<snip>
Why wouldn't you use the REMOVE statement?
A = A ;* Force the internal pointer
REM.A = 999 ;* Not done
LOOP WHILE REM.A NE 0
REMOVE A.FIELD FROM A SETTING REM.A
(Do something or other with A.FIELD)
REPEAT
--
Allen Egerton
[EMAIL PROTECTED]
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/