<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Tue, 06 Jan 2004 00:27:49 +0000 (GMT)
From   : Steve Fewell <kranser@...>
Subject: BBC BASIC4 - Comments in DATA statements!

Was anyone aware that it is possible to include
comments in DATA statements - not that it's much use
on the Beeb, with the lack of memory!

The trick is to use a non-expression continuation
character (i.e. open bracket, single quote or
semi-colon work for me).

I.e.:
10 READ A, B, C
20 PRINT "Wage=";A
30 PRINT "Hours=";B
40 PRINT "Age=";C
50 DATA 12.50 (This is the Wage), 6.0 (This is the
Number of hours), 42 (This is the age)

BASIC4 will ignore anything between the end of the
numeric expression and the comma!

Regards,
Steve.


________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>