Activate

<< Click to Display Table of Contents >>

 

Activate

Activate()

Activates a currently inactive object. The next script contains an example of using this method.

Sub CommandButton1_Click()
  Dim obj, tag
  Set obj = Application.GetObject("Data")
  ' Creates a new object and deactivates it (False)
  Set tag = obj.AddObject("DemoTag", False)
  ' Initializes the new object's parameters
  tag.Name = "tag001"
  tag.Type = 3
  ' Enables the object (executes it)
  tag.Activate()
End Sub

 

NOTE

Activating an object using this method configures the IsObjectActive property of this object to True.

Was this page useful?