Directives
PRINT Display Information
 
Formats PRINT [(chan,fileopt)]varlist .. or .. ? [(chan,fileopt)]varlist
 
Where:
 
  ? ProvideX accepts the question mark ? as a substitute for PRINT.
chan Channel or logical file number of the target device (terminal or printer) or serial file for a display or print job. The user's terminal is always defined as 0 (zero).
fileopt Supported file options (see also, File Options):
  ERR=stmtref Error transfer
  TBL=stmtref Record number.
stmtref Program line number or statement label to which to transfer control.
varlist Comma-separated list of variables, literals, expressions, Mnemonics, IOL= options, and/or location functions '@(...)'. Include Format Masks to define how data is to be displayed.
 
Description Use the PRINT directive to format and send printable data to a terminal, printer or file. This instruction processes mnemonics and positioning information. If the print statement ends with a trailing comma, the output from a subsequent PRINT directive will continue on the same line. Otherwise, it will start at the first column of the next line. If you omit a format mask for a numeric in the PRINT statement, 'DP' Decimal Point Symbol and 'TH' Thousands Separator system parameters are ignored for European decimal settings. ProvideX accepts the question mark ? as a substitute for PRINT.


*Note* Because of the potential conflict between the function AND( ) and the logical operator AND, there is a problem when the syntax processor tries to parse the statement PRINT AND($41$,$42$). As a work around, assign the result of a logical AND to a temporary variable or change the statement to PRINT ""+AND($41$,$42$).


 
See Also Mnemonics
Data Format Masks
 
Examples PRINT 'CS',"Date:",DAY," Time:",TIM is the same as
? 'CS',"Date:",DAY," Time:",TIM.
Both result in the same date and time display on a clear screen (Date:02/22/00
Time: 8.398397). You can assign a page or screen position for PRINT data:
 
1010 PRINT @(5,5),"CUSTOMER LISTING",! prints to screen at col 5, line 5
You can also print data overlaying a graphic in ProvideX, but only if all text output is sent using 'FONT' and 'TEXT' mnemonics (rather than as standard PRINT statements). In the example below, "Hello"will overlay the embedded bitmap.
 
0010 PRINT 'CS'
0020 PRINT 'PICTURE'(220,210,600,500,"!Binoculars",2),
0030 PRINT 'FONT'("MS Serif",-20); PRINT 'GREEN','TEXT'(220,210,"Hello")