Hi Adrian,
I personally use:
EOF=0
LOOP
READNEXT id ELSE EOF=1
code
UNTIL EOF DO
code
REPEAT
It is much clearer(i hope) to the next guy looking at the code.
Louie.
>Adrian wrote:
>
>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.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/