Print statement (LotusScript® Language)
Prints data to the screen.
Syntax
Print [ exprList ]
Elements
exprList
A list of expressions separated by semicolons, spaces, or commas.
Usage
If exprList is omitted, Print prints a blank line.
Use the Spc and Tab functions to insert spaces and tabs between data items.
The Print statement adds a newline character to the end of exprList (to force a carriage return), unless exprList ends with a semicolon or a comma.
LotusScript® inserts "chr(10)" to represent the newline character in any multiline string (for example, a string that you type in using vertical bars or braces). If you use Print to print the string, this newline character will be translated into the platform-specific newline character(s).
The following table shows how the Print statement handles data items specified in exprList.
Data item |
Print statement behavior |
---|---|
variable |
Prints the value of the variable. |
string |
Prints the string. |
date/time value |
Prints the date as a string in the operating system Short Date and Time format. If either the date part or the time part is missing from the value, only the supplied part is printed. |
Variant with the value EMPTY |
Prints an empty string (""). |
Variant with the value Null |
Prints the string "#NULL#". |
The following table shows the effect of semicolons and commas in the Print statement.
Punctuation character |
Print statement behavior |
---|---|
Semicolon or space in exprList |
The next data item is printed with no spaces between it and the previous data item. |
Semicolon at end of exprList |
The next Print statement continues printing on the same line, with no spaces or carriage returns inserted. |
Comma in exprList |
The next data item is printed beginning at the next tab stop. (Tab stops are at every 14 characters.) |
Comma at end of exprList |
The next Print statement continues printing on the same line, beginning at the next tab stop. (Tab stops are at every 14 characters.) |
If you are in Notes®, note that the Print statement writes to the following:
- The status bar when executing on a Notes® client in non-debug mode.
- The status bar and output window when executing on a Notes® client in debug mode.
- NOTES.LOG when executing on a Domino® server.
If the request is from the Web, Print will be re-directed to the source