Language Reference Guide : System Classes : LongVcharObject Class : WriteToFile Method
 
Share this page          
WriteToFile Method
The WriteToFile method writes the contents of the Value attribute of a LongVcharObject to a file.
This method has the following syntax:
integer = LongVcharObject.WriteToFile([filename = varchar(256)])
This method has the following parameter:
filename
Specifies a file name that must be valid for the system on which the application is running. After the WriteToFile method completes, OpenROAD updates the FileHandle attribute of the LongVcharObject to reflect the name of the file.
Default: the current value of the LongVcharObject object's FileHandle attribute
This method returns ER_OK if successful. If the file name is invalid or if any other errors occur, the method returns a non-zero value and generates an error message. Descriptions of system constant values and their numeric equivalents are listed in Error Codes.