Siebel VB Language Reference > Methods Reference for Siebel VB > File Input and Output Methods >

Print Data to File Method


The Print Data to File method prints data to an open file. It does not return a value. You can use the following methods in a Print statement:

  • Print Spaces method. Inserts a given number of spaces. For more information, see Print Spaces Method.
  • Set Print Position method. Moves the print position to a desired column. For more information, see Set Print Position Method.

The Print statement supports only elementary Visual Basic data types. For more information on parsing this statement, see Get Characters From File Method.

Format

Print [#][filenumber,] expressionList [{;|, }]

The following table describes the arguments that you can use with this method.

Argument
Description

filenumber

The file number that the Open statement uses to open the file. The Print Data to File method prints data to this file. For more information, see Open File Method.

expressionList

A list of values that this method prints. It prints these values in the form of literals or expressions. It determines where output for the next Print statement to the same output file must begin.

If you do not include the expressionList argument, then this method writes a blank line to the file.

Usage for the Expression List

You can use one of the following characters to separate each value in the expressionList argument:

  • Semicolon (;). The next value must occur immediately after the preceding value without intervening white space.
  • Comma (,). The next value must occur at the next print zone. A new print zone begins every 14 spaces.

If you do not specify a semicolon or a comma, then the Print Data to File method creates a CR-LF (carriage return - line feed) pair and the next Print statement prints on the next line.

Siebel VB Language Reference Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.