MultiCam Boards Documentation > MultiCam Documentation > MultiCam User Guide > MultiCam Basics > Parameters > Accessing a Parameter > Code Examples for setting a MultiCam Parameter > How to set a Collection Parameter

How to set a Collection Parameter

Any type of parameter can assume the collection flavor.

The following code sets the second element of the channel-class adjust-level enumerated collection parameter SignalEnable to the value ON according to all possible methods:

//Setting the element using the by-ident parameter
//and by-ident enumerated method

Status = McSetParamInt(ObjectHandle, MC_SignalEnable+1, MC_SignalEnable_ON);

//Setting the element using the by-name parameter
//and by-ident enumerated method

Status = McSetParamNmInt(ObjectHandle, "SignalEnable:1", MC_SignalEnable_ON);

//Setting the element using the by-ident parameter
//and by-name enumerated method

Status = McSetParamStr(ObjectHandle, MC_SignalEnable+1, "ON");

//Setting the element using the by-name parameter
//and by-name enumerated method

Status = McSetParamNmStr(ObjectHandle, "SignalEnable:1", "ON");

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

The Status variable can be used for error checking.