PRINT

Top  Previous  Next

Syntax

PRINT OPT win as WINDOW, ...

Description

Outputs data to the console or a window.

Parameters

win - Optional window to print into.

... - Variable list of parameters to print.

Return value

None

Remarks

If win is omitted all output will be redirected to the console which must have been opened with the OPENCONSOLE command. parameters may be variables, functions or literals. If a window is specified the text will be drawn at the position last set by the MOVE statement. A trailing comma in console mode leaves the caret at the end of the line.

For floating point types the SETPRECISION command determines the number of decimal places displayed

See Also: SETPRECISION, OPENCONSOLE

Example usage

PRINT mywnd, A$, 2+2, "This is a test", LEFT$(A$, 10)
PRINT "This goes to the console",