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

ActiveX and .NET Control functions<br />

These functions are used to directly run ActiveX and .NET Control objects in the project, as well as to get and<br />

set property values on those objects.<br />

XGet<br />

This function gets the current value of a Property on an ActiveX Control or .NET Control object.<br />

Function Group Execution Windows Embedded Thin Client<br />

XGet<br />

Syntax<br />

ActiveX and .NET<br />

Control<br />

XGet ( strName , strProperties )<br />

strName<br />

strProperties<br />

Asynchronous Supported ActiveX Controls only<br />

(see Notes)<br />

Supported<br />

The unique name of the ActiveX Control or .NET Control object, as configured in the Name field of<br />

the Object Properties dialog.<br />

The Property that you want to get the value of. Available Properties are listed in the<br />

Configuration (for an ActiveX Control) or Members (for a .NET Control) dialog.<br />

Returned value<br />

Returns the value of the specified Property.<br />

Notes<br />

This function cannot be used in Tasks or in the Global Procedures script. Also, this function is not supported<br />

for .NET Control objects running on a Windows Embedded station.<br />

Examples<br />

Get the current value of the Color property on the ActiveX Control object named "ActXRec":<br />

XGet( "ActXRec", "Color" )<br />

XRun<br />

This function runs a Method on an ActiveX Control or .NET Control object.<br />

Function Group Execution Windows Embedded Thin Client<br />

XRun<br />

Syntax<br />

ActiveX and .NET<br />

Control<br />

XRun ( strName , strMethod , Parameter1 ,ParameterN)<br />

strName<br />

strMethod<br />

Asynchronous Supported ActiveX Controls only<br />

(see Notes)<br />

Supported<br />

The unique name of the ActiveX Control or .NET Control object, as configured in the Name field of<br />

the Object Properties dialog.<br />

The Method that you want to run. Available Methods are listed in the Configuration (for an<br />

ActiveX Control) or Members (for a .NET Control) dialog.<br />

Parameter(1…N)<br />

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

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

Saved successfully!

Ooh no, something went wrong!