CompoundControl Class

Description

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.

Inheritance

CompoundControl is derived from the Control class.

Methods

In addition to the methods it inherits from the Control class, CompoundControl has the following methods:
Method
Description
Collection Calls
Collection calls are made against a contained collection object. For example, you might use the _GetCollectionProp call to get the Count property of a Columns collection.
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)
Item Calls
Item calls are for calling an individual item within a contained collection. You can specify the item with a string (sKey) or numeric index (nIndex). If the string is empty (" "), the numeric value is used.
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)
Wrapper Methods
Wrapper methods generalize the calling of subordinate (dependent) objects. In each case, the sObjProp property returns the interface that provides access to the inner objects.
[-] 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))

Properties

CompoundControl has only the properties it inherits from the Control class.

Examples

//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")