Saves data in a file with a specified format.
TXTextControl.Save FileName[, Offset[, Format[, CurSelection]]]
Parameter | Description | ||||||||||||||||||||||||||||||||||||||||||||||
FileName |
Specifies the file to save in. |
||||||||||||||||||||||||||||||||||||||||||||||
Offset |
Optional. Specifies the file position to where the data is to be written when the data of more than one Text Control are to be saved. When not specified or set to -1 the data is appended. |
||||||||||||||||||||||||||||||||||||||||||||||
Format |
Optional. Specifies a format identifier. When this parameter is not specified the data is saved in the internal Text Control format (3). Otherwise it can be one of the following values:
|
||||||||||||||||||||||||||||||||||||||||||||||
CurSelection |
Optional. When set to True the current selection is saved. When omitted or set to False or when no selection exists all the control contents are saved. This parameter must be set to False if the saving format is XML (10), CSS (11), AdobePDF (12) or AdobePDF/A (14). |
The method returns the position in the file behind the saved data. It is zero if the data could not be saved.
FileName: | String |
Offset: | Long |
Format: | Integer |
CurSelection: | Boolean |
Return value: | Long |
<< TXTextControl.RulerHandle Property | >> TXTextControl.SaveDialog Method