XRun
- Last UpdatedAug 07, 2026
- 1 minute read
The function XRun 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 specified in the Name box in the Object Properties dialog.
strMethod
The Method that you want to run. Available Methods
Parameter1 … ParameterN
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. Match the data types (Boolean, Integer, Real or String) of referring tags to the parameters of the Method.
Returned value
This function returns the Method result as reported by the ActiveX Control or .NET Control object. Not all Methods return results.
Notes
Examples
Run the XPos method on the ActiveX Control named ActXCir, with four original values passed to the method:
XRun("ActXCir", "XPos", FALSE, 12, 4.6, "This is my text.")
Run the XPos method on the ActiveX Control named ActXCir, with four referring tags passed to the method:
XRun("ActXCir", "XPos", TagA, TagB, TagC, TagD)