InfoWriteToFile - method of object Pm

The method writes the content of the page in the INFO system into the text file. It performs it in the same way as the action after clicking the button "Print to file" in the INFO system window.
InfoWriteToFile(sInfoPath As String, sInfoName As String, sFile As String, bAdd As Boolean) As Boolean
b = Pm.InfoWriteToFile(sInfoPath, sInfoName, sFile, bAdd)
sInfoPath(String) Path to the INFO item. It is for example "COMM/PmModbusMr_0" for communication.

Caution: this isn't a path in the PROMOTIC objects tree. This is the path in the tree when viewing the INFO system!

sInfoName(String) Name of the INFO item, which is the name of the page in the INFO system. It is for example "Monitor" for "COMM/driver" item.

If "$all" is entered, then the write is executed for all pages contained in corresponding INFO item.

sFile(String) The file name with the path where data have to be written.

It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files and folders.

bAdd(Boolean) true means add to the file, false means to overwrite the file.
Return Values:
true - on success
false - on error
This method is not functional for Web panels in JavaScript language (and therefore it is not working in Web panels).
Add the list of global errors into the Info.txt text file in the application folder.
VBScriptSelect and copy to clipboard

Pm.InfoWriteToFile "Errors", "Global", "#app:Info.txt", true
PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

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