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 />

optNumType<br />

A numeric value, or a tag of Integer type, specifying the data type of Value. This is an optional<br />

parameter, but if it is included, then it must have one of following values:<br />

Returned value<br />

Value Type Description<br />

0 OCTETSTRING An ctet string variable<br />

1 INTEGER32 A 32-bit signed integer variable<br />

2 TIMETICKS A timeticks variable<br />

3 GAUGE32 A gauge variable<br />

4 COUNTER32 A counter variable<br />

5 IPADDRESS An IP address variable<br />

6 OBJECTIDENTIFIER An object identifier variable<br />

7 SEQUENCE An ASN sequence variable<br />

8 OPAQUE An opaque variable<br />

Value<br />

Description<br />

0 No error<br />

−1<br />

Invalid number of parameters<br />

−2<br />

Invalid parameter<br />

−5<br />

SET operation failed<br />

−7<br />

Invalid tag name<br />

−8<br />

Invalid tag type<br />

−9<br />

This function is not supported on the current operating system<br />

If you receive any other values, please contact technical support.<br />

Examples<br />

Tag Name<br />

Expression<br />

SNMPSet( "127.0.0.1", "public", ".1.3.6.1.2.1.1.1.0", 123, 1 ) //Sets an<br />

integer value of 123 to the specified OID on the localhost (127.0.0.1).<br />

WritePrivateProfileString<br />

Writes a specified setting to the project viewer initialization file, using the standard .ini format.<br />

Function Group Execution Windows Embedded Thin Client<br />

WritePrivateProfileString<br />

System Info Synchronous Supported Supported Supported<br />

Syntax<br />

WritePrivateProfileString ( strSection, strName, strValue, strFileName )<br />

strSection<br />

strName<br />

The section name to be written.<br />

Page 684<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!