Re: CASE...ENCASE Query...
- From: Richard Russell <news@xxxxxxxxxxxxxxx>
- Date: Sat, 10 Jan 2009 03:51:04 -0800 (PST)
On Jan 9, 2:47 pm, Steve Drain <st...@xxxxxxxxxxx> wrote:
More like C ATM, just the current loop. As loops are not labelled in
BASIC you could only chose one of nested NEXT/REPEAT/WHILE,
which would not be much more use.
The 'EXIT FOR variable' syntax is supported by BBC BASIC for Windows
(and a number of other BASIC dialects) which allows you to jump out of
an arbitrarily-deeply nested set of FOR loops:
FOR I% = start% TO finish%
FOR J% = first% TO last%
FOR K% = beginning% TO end%
...
IF bool% THEN EXIT FOR I%
...
NEXT
NEXT
NEXT
REM Execution continues here
Ah! But that is another form of comment. The point of using
VDU: at the start of a line is that it is executed in debuggin
mode, but can be easily removed to make a release version.
VDU: results in a 'Syntax error' in BBC BASIC for Windows!
I always recommend the *| method (the BB4W cruncher deliberately
*doesn't* treat that as a REM; it considers it a 'non-removable
comment' for debugging purposes).
Richard.
http://www.rtrussell.co.uk/
To reply by email change 'news' to my forename.
.
- References:
- CASE...ENCASE Query...
- From: usenet
- Re: CASE...ENCASE Query...
- From: Derek Haslam
- Re: CASE...ENCASE Query...
- From: usenet
- Re: CASE...ENCASE Query...
- From: malshayef
- Re: CASE...ENCASE Query...
- From: Ste (news)
- Re: CASE...ENCASE Query...
- From: malshayef
- Re: CASE...ENCASE Query...
- From: Steve Drain
- Re: CASE...ENCASE Query...
- From: Rob Kendrick
- Re: CASE...ENCASE Query...
- From: Steve Drain
- CASE...ENCASE Query...
- Prev by Date: Re: CASE...ENCASE Query...
- Next by Date: Re: CASE...ENCASE Query...
- Previous by thread: Re: CASE...ENCASE Query...
- Next by thread: Re: CASE...ENCASE Query...
- Index(es):
Relevant Pages
|