Promotic
WikipediaLinkedInYoutubeTwitterFacebook

FileWriteVariable - method of object Pm

Description:
Writing the value of the variable into the file.
Syntax:
FileWriteVariable(sFile As String, vValue As Variant) As Boolean
Calling:
b = Pm.FileWriteVariable(sFile, vValue)
Parameters:
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
Return Values:
true - on success
false - on error
Note:
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.
Example:
Pm.FileWriteVariable "#data:Value1.dat", Array(4, 5, "Hello")
PROMOTIC 8.3.21 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- FileWriteVariable
 
 
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice