FileWriteVariable - method of object Pm
Writing the value of the variable into the file.
FileWriteVariable(sFile As String, vValue As Variant) As Boolean
b = Pm.FileWriteVariable(sFile, vValue)
|sFile||(String) The file name with the path. If a full path is not entered, then it is completed relatively according to the application file folder. |
It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders.
|vValue||(Variant) Variable that has to be stored|
true - on success
false - on error
The value can be of any data type, including an array (see example). Both data type and the value of the variable are stored into the file in the binary format.
This method is not
functional for Web panels
language (and therefore it is not working in Web panels
VBScriptSelect and copy to clipboard
Pm.FileWriteVariable "#app:Value1.dat", Array(4, 5, "Hello")