Print

Description:              This statement allows text to be printed.

Returns:                    Nothing

Usage:                       Script

Format:                      Print(PrinterSpec, Text)

Parameters:             PrinterSpec will accept any of the following:

                                    Local Printer:

      Port name (including virtual ports) with or without a trailing colon (e.g. DEF or DEF:; COM1 or COM1:; USB001 or USB001:; etc.)

      Windows printer share (e.g. "XYZ Laser Printer")

      Windows share name (if the printer is shared) (e.g. "XYZLaser")

                                    Local or Remote Printer:

      UNC share name (which includes the host and share name (e.g. "\\localhost\XYlaser" or "\\lab1\NetPrinter")

                             Text    { text }  { required }  { no default: }

                                      Any text expression that gives the text to print. Control characters may be included in the text.

Comments:               This statement is very similar to the PrintLine statement except it does not add the carriage return or line feed after the text.

                             In VTS 7.0 and later, all print functions are now compatible with the values returned in either of the first two parameters of the new PrintDialogBox function.

Example:

If 1 NextScreen;

[

  Print(1, "Daily Report: "); 

]

This prints the string "Daily Report: " to LPT1:.

See Also:

FWrite | PrintLine | PrtScrn | Redirect | SWrite