API Reference > OdDAI Namespace > Classes > Select Class > Select Methods > setEnum Method > Select::setEnum Method (unsigned long)
Select::setEnum Method (unsigned long)
Syntax
C++
bool setEnum(unsigned long val);
Parameters 
Description 
unsigned long val 
[in] A new value.  

Returns true if the value was successfully set; otherwise, the method returns false.

Sets a new value represented with a unsigned long value into underlying enumeration instance.

This method can be used together with early-bound enumeration values, but is not recommended in late-bound way of working as same numerical index values of enumeration types may have different meanings in different EXPRESS schemas.

Copyright (c) 2002-2021. Open Design Alliance. All rights reserved.