Builds an Automation variant parameter. This parameter can be used during the call to a method of an Automation object that requires a specific Automation variant.
oObject is object Automation "AutomationObject"
arrArray is array of 5 ints
// Forces the array to be passed by an Automation variant
// rather than directly
oObject>>MyMethod(BuildAutomationVariant(arrArray))
Syntax
<Result> = BuildAutomationVariant(<Parameter to convert>)
<Result>: Automation Variant
Value of the parameter converted into Automation variant. This result must be passed directly to a method of an Automation object. This result cannot be stored in a WLanguage variable.
<Parameter to convert>: Any type
WLanguage element to convert into automation variant (constant, variable, ...). This element is converted in an Automation variant. This automation variant contains the Automation equivalent of the WLanguage element.