Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel VB Language Reference > Siebel VB Language Reference >
Print Statement
This standard VB method prints data to an open file.
Syntax
Print [#][filenumber,] expressionList [{;|, }]
Argument Description filenumber The number of the open file to print to expressionList A list of values to be printed, in the form of literals or expressions
Returns
Not applicable
Usage
The Print statement outputs data to the specified filenumber. Filenumber is the number assigned to the file when it was opened. For more information, read Open Statement.
If the expressionList is omitted, a blank line is written to the file.
The values in expressionList may be separated by either a semicolon or a comma. A semicolon indicates that the next value should appear immediately after the preceding one without intervening white space. A comma indicates that the next value should be positioned at the next print zone. Print zones begin every 14 spaces.
The optional [{;|, }] argument at the end of the Print statement determines where output for the next Print statement to the same output file should begin. A semicolon places output immediately after the output from this Print statement on the current line; a comma starts output at the next print zone on the current line. If neither separator is specified, a CR-LF pair is generated and the next Print statement prints to the next line.
The Spc and Tab functions can be used inside a Print statement to insert a given number of spaces and to move the print position to a desired column, respectively.
The Print statement supports only elementary Basic data types. For more information on parsing this statement, read Input Function.
See Also
Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel VB Language Reference Published: 18 June 2003 |