Why do you need the WHILE 1 DO?
You could use
LOOP
        READNEXT ID ELSE EXIT
        code
        
REPEAT

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave S
Sent: 17 June 2004 14:57
To: [EMAIL PROTECTED]
Subject: Re: [U2] [UV] WHILE READNEXT id DO

I like to use :
 
LOOP WHILE 1 DO
READNEXT ID ELSE EXIT
REPEAT


Louis Windsor <[EMAIL PROTECTED]> wrote:
The format -

LOOP WHILE READNEXT ID
code
REPEAT

was the suggested standard where I used to work.

Louis


----- Original Message ----- 
From: 
To: 
Sent: Thursday, June 17, 2004 4:57 PM
Subject: [U2] [UV] WHILE READNEXT id DO


: LOOP
: code
: WHILE READNEXT id DO
: more code
: REPEAT
:
: This format of the READNEXT statement is used in a couple of places in
the
: UniVerse BASIC manual. It looks like READNEXT is returning a Boolean.
:
: If I look up READNEXT in the manual (or in HELP from TCL) - there is
no
: mention of this format of the statement.
:
: And in the manual the THEN and ELSE are enclosed in braces: {THEN
statements
: [ELSE statements] | ELSE statements}
: which according to convention means that I have to choose one
"non-optional"
: item.
:
: Has this format of the statement just been left out of the manual by
mistake
: or is it a "new" format, that was never documented.
:
: And, what are people's thoughts on using this format. Personally I
dislike
: it, as it isn't easily readable, it's not documented and it's not a
standard
: use of the statement syntax.
:
: AdrianW
:
:
:
:
: Disclaimer. This e-mail is private and confidential. If you are not
the
: intended recipient, please advise us by return e-mail immediately, and
: delete the e-mail and any attachments without using or disclosing the
: contents in any way. The views expressed in this e-mail are those of
the
: author, and do not represent those of this company unless this is
clearly
: indicated. You should scan this e-mail and any attachments for
viruses.
This
: company accepts no liability for any direct or indirect damage or loss
: resulting from the use of any attachments to this e-mail.
: -------
: 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/

                
---------------------------------
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Internet Email Confidentiality: Privileged/Confidential Information may be contained 
in this message. If you are not the addressee indicated in this message (or 
responsible for delivery of the message to such person), you may not copy or deliver 
this message to anyone. In such case, you should destroy this message and kindly 
notify the sender by reply email. Please advise immediately if you or your employer do 
not consent to Internet email for messages of this kind. Opinions, conclusions and 
other information in this message that do not relate to the official business of my 
firm shall be understood as neither given nor endorsed by it. Should you wish to 
communicate with us by e-mail, we cannot guarantee the security of any data outside 
our own computer systems. Please note that voice calls to Call Stream may be recorded 
or monitored.
17/6/2004
Kishor Parmar
[EMAIL PROTECTED]
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to