GetObject

<< Click to Display Table of Contents >>

 

GetObject

GetObject(ObjectPath)

This method returns a reference to the object specified by ObjectPath. This allows accessing all object's properties and methods. This is a common practice when programming scripts in Elipse E3, makes it easy to handle objects, and makes code more intelligible. The next script contains an example of using this method.

Sub CommandButton1_Click()
  ' Assign the value 20 to InternalTag1's Value property
  ' which is inside Data.
  Set tag = Application.GetObject("Data.InternalTag1")
  tag.Value = 20
End Sub

Was this page useful?