I use

LOOP
        READNEXT ID ELSE ID = ''
UNTIL ID = ''
        Do Stuff
REPEAT

I thought this was a safe way to check for the end of the list.  I just 
used the ID as a flag and I wasn't sure what the value would be at the end 
of a list.  I guess I was assuming that a SELECT list would not contain an 
ID of ''.  Now I am wondering if this is a good idea.

David said
>>I tend to use:

>>SELECT FILENAME
>>EOF = @FALSE
>>LOOP
>> READNEXT ID ELSE EOF = @TRUE
>>UNTIL EOF DO
>> CODE
>> CODE
>> CODE with GOSUB
>> CODE
>> CODE
>>REPEAT

Charles Shaffer
Senior Analyst
NTN-Bower Corporation
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to