FindControls - cCJCommandBarSystem
Finds all COM controls that have the passed Id
Type: Function
Return Data Type: Variant[]
Parameters
| Parameter | Type | Description |
|---|---|---|
| iId | Integer | The Id to search for |
Syntax
Function FindControls Integer iId Returns Variant[]
Call Example
Get FindControls iId to Variant[]Variable
Description
FindControls searches the commandbar system for the all controls with the passed Id. It returns an array of variant pointers to the controls.
The passed Id will usually be a cCJAction's Id (piId).
This is a low level message and will be rarely used. The COM interface provides the message ComFindControl, which allows you to find a single control for an Id. There is no built in COM interface to find all controls assigned to an Id, so this method was created.
See the cCJAction CreateProxyControl, CreateFirstProxyControl, FindFirstControl and FindAllControls methods for more information about how COM controls are used. If you need to find a control you will probably use one of those messages. Note that FindAllControls calls this function.
Return Value
Returns a variant array of COM pointers to controls that have this Id