GetObjectInfo Method Example

The following example retrieves a two dimensional array consisting of the values for StartTime and Interval for the Timer objects MyTimer and MyTimer1.

Dim iSched As Object

Dim Objects(1) As String

Dim Properties(1) As String

Dim Objinfo As Variant

Objects(0) = "MyTimer"

Objects(1) = "MyTimer1"

Properties(0) = "StartTime"

Properties(1) = "Interval"

Set iSched = System.FindObject("TestSchedule")

objinfo = iSched.GetObjectInfo(objects, properties)