Ohh.....lemme see, could it be that I've never heard of REMOVE? :-D Oh boy a new toy to play with. I'll give it a whirl in my speedtest program and see which is more efficient!!!
News at 11 ! -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Allen Egerton Sent: Tuesday, October 26, 2004 14:27 To: [EMAIL PROTECTED] Subject: Re: [U2] [UD] Exit BASIC program with SELECT list? 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/ ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
