omron — WritePrivateProfileString

Appendix: Built-in Scripting Language strName The parameter name to be written. strValue The value to be written. strFileName The path and name of the .ini file to be written. Returned value The function returns 1 if the file was updated successfully. Notes When running on Windows Embedded this function will rewrite the entire file, therefore its use is not recommended for lengthy files on Windows Embedded devices. The function will also add the following lines at the end of the file when on a Windows Embedded device:

[FileBackUpControl] Valid=1 Examples InduSoft Web Studio Page 571 Tag Name Expression Tag WritePrivateProfileString( Section, Name, Value, FileName ) Tag WritePrivateProfileString( "Options", "ds1", "Value", "C: \Viewer.ini" )