70 of 286
56 CType Type Function returning an enumeration member Invocation CType(value, enumType) Parameter Method Type Description value ByVal numeric or Enum The value to convert to an Enum member. enumType ByVal Enum The name of the Enum type. Discussion This function converts any numeric or enumeration member value to an enumeration member. No checking is done to confirm that the given value actually corresponds to one of the enumeration members. See the section on enumerations in the ZBasic Reference Manual for more information. Example Enum Color Red Green Blue End Enum Dim c as Color c = CType(1, Color) ' c will have the value Green