Examples:
** Access a nested property (or several nesting levels down lcStreet = loBridge.GetPropertyEx(loItem,"Address.Street") ** Access an indexed property loPerson = loBridge.GetPropertyEx(loItem,"Persons[0]") lcName = loBridge.GetPropertyEx(loItem,"Persons[0].Name")
Use this method if you're dealing with an object such as a generic type of collection or struct that COM doesn't support direct access from FoxPro via COM.
o.GetPropertyEx(loInstance, lcProperty)
lcProperty
The property or property path to set the value on as a string.
Supports . syntax (Property.ChildProperty.ChildProperty) to drill down into object hierarchy as well as Array/Collection indexers (Item[0])
While this method is much more flexible than the GetProperty method, it also adds some parsing overhead. If performance is important manual drill down via GetProperty calls may be more efficient.