GetNumCtrlArrayItems
int GetNumCtrlArrayItems (int controlArrayHandle, int *count);
Purpose
Returns the number of controls in the specified control array.
Parameters
Input | ||
Name | Type | Description |
controlArrayHandle | int | Specifier for a particular control array that is currently in memory. You obtain this handle from GetCtrlArrayFromResourceID or NewCtrlArray. |
Output | ||
Name | Type | Description |
count | int | The number of controls in the control array. Because the indices are zero based, this value is one greater than the index of the last item. |
Return Value
Name | Type | Description |
status | int | Return value indicating whether the function was successful. A negative number indicates that an error occurred. |
Additional Information
Library: User Interface Library
Include file: userint.h
LabWindows/CVI compatibility: LabWindows/CVI 2010 and later
Example
Refer to userint\ledctrlarray.cws for an example of using the GetNumCtrlArrayItems function.