18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

Value<br />

Description<br />

-5 DialGetServerIP 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 tagServerIP.<br />

Notes<br />

This function must be executed on the RAS client station, not on the server station. (Essentially, the station<br />

gets the IP address of the server to which it is connected.)<br />

Also, this function is not supported on Windows 7.<br />

Examples<br />

Use the Phonebook Name "Office DialUp" and write the resulting IP address to ServerIPTag:<br />

DialGetServerIP( 0, "Office DialUp", "ServerIPTag" )<br />

Use the Modem Name "USRobotics_SportsterFaxModem," write the resulting IP address to ServerIPAddress,<br />

and refresh every second (that is, every time the system tag Second changes):<br />

DialGetServerIP( 1, "USRobotics_SportsterFaxModem", "ServerIPAddress", Second )<br />

Use the Direct Connection Name "DirectDial" and write the resulting IP address to IPAdd:<br />

DialGetServerIP( 2, "DirectDial", "IPAdd" )<br />

DialStatus<br />

Returns the status of the dial-up connection.<br />

Function Group Execution Windows Embedded Thin Client<br />

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

Note: This function is not supported on Windows 7.<br />

Syntax<br />

DialStatus( numType, strPhonebookEntryOrModem, "optStatus", optRefresh )<br />

numType<br />

A numeric flag that specifies the content of the strPhonebookEntryorModem parameter.<br />

• 0: Phonebook Name<br />

• 1: Modem Name<br />

• 2: Direct Connection Name<br />

strPhonebookEntryOrModem<br />

Page 718<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!