omron — XRun

Appendix: Built-in Scripting Language ActiveX and .NET Control functions These functions are used to directly run ActiveX and .NET Control objects in the project, as well as to get and set property values on those objects. XGet This function gets the current value of a Property on an ActiveX Control or .NET Control object. Syntax XGet ( strName , strProperties ) strName The unique name of the ActiveX Control or .NET Control object, as configured in the Name field of the Object Properties dialog. strProperties The Property that you want to get the value of. Available Properties are listed in the Configuration (for an ActiveX Control) or Members (for a .NET Control) dialog.

Returned value Returns the value of the specified Property. Notes This function cannot be used in Tasks or in the Global Procedures script. Also, this function is not supported for .NET Control objects running on a Windows Embedded station. Examples Get the current value of the Color property on the ActiveX Control object named "ActXRec": XGet( "ActXRec", "Color" ) XRun This function runs a Method on an ActiveX Control or .NET Control object. Syntax XRun ( strName , strMethod , Parameter1 , ParameterN ) strName The unique name of the ActiveX Control or .NET Control object, as configured in the Name field of the Object Properties dialog. strMethod The Method that you want to run.

Available Methods are listed in the Configuration (for an ActiveX Control) or Members (for a .NET Control) dialog. Parameter(1…N) Data of various types that are required by the Method to run. The number of parameters can range from 0 to 255 and depends on the specified Method. The data types (e.g., Boolean, Integer, Real or String) of referring tags must match the parameters on the Method.

Page 614 InduSoft Web Studio Function Group Execution Windows Embedded Thin Client XGet ActiveX and .NET Control Asynchronous Supported ActiveX Controls only (see Notes) Supported Function Group Execution Windows Embedded Thin Client XRun ActiveX and .NET Control Asynchronous Supported ActiveX Controls only (see Notes) Supported