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

Examples<br />

Tag Name<br />

Expression<br />

Tag DialError( 0, "Office DialUp" )<br />

Tag<br />

DialError( 1, "USRobotics_SportsterFaxModem", "StatusMessage",<br />

second )<br />

Tag DialError( 2, "DirectDial", "DialupError" )<br />

See also: FindModem()<br />

DialGetClientIP<br />

This function gets the IP address of a Remote Access Service (RAS) client station.<br />

Function Group Execution Windows Embedded Thin Client<br />

DialGetClientIPDial-up Synchronous Supported (see note) Supported Supported<br />

Syntax<br />

DialGetClientIP({ numType | 0 | 1 | 2 },strPhoneBookOrModem,"tagClientIP"{ | ,optTagRefresh })<br />

numType<br />

The type of information specified by strPhoneBookOrModem: 0 is a Phonebook Name, 1 is a<br />

Modem Name, and 2 is a Direct Connection Name.<br />

strPhoneBookOrModem<br />

tagClientIP<br />

optTagRefresh<br />

The Phonebook Name, Modem Name, or Direct Connection Name used to make the connection.<br />

The name of a String tag that will receive the IP address.<br />

Note: The tag name must be enclosed in quotes, as shown in the syntax<br />

diagram, or else the project will try to get the value of the named tag.<br />

The name of a tag that, whenever the value of the tag changes, will trigger the function to<br />

refresh its returned value.<br />

Also, this parameter is optional but you must include it when you configure the function on an<br />

object animation such as Text Data Link or Position.<br />

Returned value<br />

This function returns the following possible values:<br />

Value<br />

Description<br />

-5 DialGetClientIP was not found in IndRAS.dll.<br />

-4 Invalid type; check numType.<br />

-3 Incorrect number of parameters.<br />

-2 DialStatus was not found in IndRAS.dll.<br />

-1 IndRAS.dll was not loaded.<br />

n<br />

Status code returned by DialStatus.<br />

This is the value returned by the function itself. The IP address is written to the tag specified by tagClientIP.<br />

Page 716<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!