MultiCam Boards Documentation > MultiCam Documentation > MultiCam User Guide > MultiCam Basics > Parameters > Accessing a Parameter > Code Examples for getting a MultiCam Parameter > How to get a Collection parameter

How to get a Collection parameter

Any type of parameter can assume the collection flavor.

The following is a code example getting the second element of the channel-class adjust-level integer collection parameter SignalEvent according to all possible methods:

//Declaring an integer variable

INT32 MyEvent;

//Getting the element using the by-ident method

Status = McGetParamInt(ObjectHandle, MC_SignalEvent+1, & MyEvent);

//Getting the element using the by-name method

Status = McGetParamNmInt(ObjectHandle, "SignalEvent:1", & MyEvent);

The element selector is zero-based, thus "1" designates the second element.

The Status variable can be used for error checking.