company logo

DictionaryHandle :: LookupCode - Lookup enumeration code by string

The function returns the code (number) for an enumerated value identified by name.

Return value:  Enumerator value ( int32  )

The enumerator value is the code (value) of an enumerator as being defined in an enumeration. CS_U is a reserved value indication an invalid enumerator value.

Implementation overview

Implementation details

  1. - internal feature (not documented)
    int32 DictionaryHandle  :: LookupCode ( BNFData *bnf_data )
    • bnf_data - Expression in BNF format

      An expression can be converted from a string into BNF format by calling the dictionary function ParseExpression().

  2. to list
  3. - internal feature (not documented)
    int32 DictionaryHandle  :: LookupCode ( NString &scoped_name, NString &enum_string )
    • scoped_name - Scoped type or property name

      my_namespace::Person

    • enum_string - Enumerator name

      The enumerator name is the string value (name) for an enumerator in an enumeration. Enumerator names must not exceed 40 characters.

  4. to list