Code Example: How to Set an Enumerated Parameter?
The following code sets the Camera enumerated parameter to the value CAM2000. The parameter as well as the value can be both accessed by identifier and by name. So, there are four ways to proceed:
[C]
//Setting the parameter using the by-ident parameter
//and by-ident enumerated method
Status = McSetParamInt(ObjectHandle, MC_Camera, MC_Camera_CAM2000);
//Setting the parameter using the by-name parameter
//and by-ident enumerated method
Status = McSetParamNmInt(ObjectHandle, "Camera", MC_Camera_CAM2000);
//Setting the parameter using the by-ident parameter
//and by-name enumerated method
Status = McSetParamStr(ObjectHandle, MC_Camera, "CAM2000");
//Setting the parameter using the by-name parameter
//and by-name enumerated method
Status = McSetParamNmStr(ObjectHandle, "Camera", "CAM2000");