Home
Free Midlets
Help

PRINT

Syntax: PRINT expression

The PRINT command prints the result of the expression onto the display. Unlike other versions of BASIC you cannot supply a comma-separated list of items to be printed. If you need to print several items on the same line then you should use the available string functions. For example: -

1000 A%=123
1020 PRINT "A%=" + STR$(A%)

To print data to a file see the "PRINT #" command that follows.

Example

PRINT 3
PRINT 4.5
PRINT "String"
PRINT intVariable%
PRINT floatVariable
PRINT stringVariable$