18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

strValue<br />

strFileName<br />

The parameter name to be written.<br />

The value to be written.<br />

The path and name of the .ini file to be written.<br />

Returned value<br />

The function returns 1 if the file was updated successfully.<br />

Notes<br />

When running on Windows Embedded this function will rewrite the entire file, therefore its use is not<br />

recommended for lengthy files on Windows Embedded devices. The function will also add the following lines at<br />

the end of the file when on a Windows Embedded device:<br />

[FileBackUpControl]<br />

Valid=1<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag WritePrivateProfileString( Section, Name, Value, FileName )<br />

Tag<br />

WritePrivateProfileString( "Options", "ds1", "Value", "C:<br />

\Viewer.ini" )<br />

<strong>InduSoft</strong> Web Studio Page 685

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!