FileWriteVariable - method of the Pm object

Saving the value of the variable into the file.
This method is obsolete (but functional) and it is better to use the PmBuffer.SaveToFile method.
Boolean FileWriteVariable(String sFile, Variant vValue)
sFile(String) The file name with the path.
If a full path is not entered, then it is completed relative to the application 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
Return value:
true - on success
false - on error
The value can be of any data type, including an array (see the example). Both data type and the value of the variable are stored into the file in the binary format.

This method is not functional in Web panels.
JavaScriptVBScriptSelect and copy to clipboard

var bWrite = Pm.FileWriteVariable("#app:Value1.dat", Pm.Array1(4, 5, "Hello"));
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
- Pm
- Abs
- Cos
- E
- Exp
- FileWriteVariable
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r.o.