|
<< Click to Display Table of Contents >>
GetObject |
GetObject(ObjectPath)
This method returns a reference to the object specified by ObjectPath. This allows accessing all properties and methods of that object. This is a common practice when programming scripts in Elipse Water, because it makes it easy to handle objects and makes code more intelligible. The next script contains an example of using this method.
Sub CommandButton1_Click()
' Assigns the value 20 to the Value property of InternalTag1
' object, which is inside Data.
Set tag = Application.GetObject("Data.InternalTag1")
tag.Value = 20
End Sub