CompoundControl is the class for ActiveX collection objects, which are objects that are used to group all the objects of another class. A CompoundControl object contains a set of dependent sub-objects. The sub-objects are not nested objects -- they are not physically contained within the CompoundControl object. Instead, the CompoundControl object is a logical grouping of the sub-objects.
obj ANYTYPE _GetCollectionProp(STRING sCollProp, STRING sPropName) obj VOID _SetCollectionProp(STRING sCollProp, STRING sPropName, ANYTYPE Value) obj ANYTYPE _CallCollectionMethod(STRING sCollProp, STRING sMethName, varargs lArgs)
obj ANYTYPE _GetItemProp(STRING sCollProp, INT nIndex, STRING sKey, STRING sPropName) obj VOID _SetItemProp(STRING sCollProp, INT nIndex, STRING sKey, STRING sPropName, ANYTYPE Value) obj ANYTYPE _CallItemMethod(STRING sCollProp, INT nIndex, STRING sKey, STRING sMethName, varargs lArgs)
[-] ANYTYPE _GetSubObjProp(STRING sObjProp, STRING sPropName) [ ] return( _GetCollectionProp(sObjProp, sPropName)) [-] VOID _SetSubObjProp(STRING sObjProp, STRING sPropName, ANYTYPE Value) [ ] _SetCollectionProp(sObjProp, sPropName, Value) [-] ANYTYPE _CallSubObjMethod(STRING sObjProp, STRING sMethName, varargs lArgs) [ ] return( _CallCollectionMethod(sObjProp, sMethName, lArgs))
//Gets the Text property of the current row for the column named Author print (iCurRow, " ", DynasetAuthors.GrdDataGrid._GetItemProp ("Columns", 0, "Author", "Text") ) // Gets the Recount property from the RecordSet object and sets iRowCount // equal to that property iRowCount = DynasetAuthors.DatDataCtl._GetSubObjprop ("Recordset", "RecordCount")