Gets a COM object's property value.
The object's property value.
The GET service gets a property value. The Object parameter identifies the instantiated object whose property you wish to get. The Name parameter is the name of the property to get and is not case sensitive.
For indexed parameters, simply pass the requisite index values immediately following the Name parameter. Note that this is different from OpenInsight's Get_Property method, in which indexes are passed within square brackets following the property name. For example, you might get the first item of a property using OpenInsight's Get_Property like so:
The same code using SRP_Com looks like this:
Note also that, unlike the other services, the GET service does not have a success/failure return value. Instead, it simply returns the property value. You can still use the ERROR service to determine if there was an error, particularly if an unexpected null value is returned.
Some properties return references to new objects. In this case, the return value is a new object handle, which you may use with SRP_Com to "drill down" into the returned object's properties and methods. The example below shows what this looks like.