GetCodeValue

The GetCodeValue returns the code value associated with a descriptive value in the list.

Syntax

Objectname.GetCodeValue(DescriptiveValue)

<Object> is an expression that evaluates to an instance of a Component Enabler connection object.

<DescriptiveValue> is a string value containing the descriptive value for a code.

Returns

The code value associated with the descriptive value.

Example

Dim Branchlist as LINCList
Set BranchList = LINCAPP.GetLINCList("*.BRANCHES")
iCode = BranchList.GetCodeValue("Oxford")

In this example, if the list *.BRANCHES contains the list of towns shown above, iCode contains the value 3.