Application Object > Methods > SetActiveAddins Method
SetActiveAddins Method
Description
You can use this method only before starting UFT (before the Application.Launch statement).
Syntax
Visual Basic
Public Function SetActiveAddins( _
   ByRef AddinNames As Variant, _
   Optional ByRef ErrorDescription As Variant _
) As Boolean
Parameters
AddinNames

An array containing strings specifying the add-in names to load.

The available Add-in names are displayed in the Add-in Manager dialog box. Alternatively, you can use the Addin.Name property to retrieve the relevant add-in name.

ErrorDescription
If the set of add-ins you specify contains two or more conflicting add-ins, or if you specify an add-in that is dependent on another add-in that was not included in the specified add-ins list, the ErrorDescription argument stores the error string describing these errors.
Return Type
  • True--The add-ins were loaded successfully.
  • False--UFT was unable to load the specified set of add-ins.
Remarks
  • In addition to using this method to load add-ins provided with UFT, you can also use it to load add-ins that you or a third party developed  using add-in extensibility to provide UFT support for additional environments or controls.
  • If an add-in is displayed in the Add-in Manager dialog box as a child of another add-in, and you instruct UFT to load the child add-in, UFT also loads the parent add-in. 
Example
See Also