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/