LINCField

The LINCField object describes one field on an Ispec. An Ispec contains a collection of

LINCField objects, where each LINCField object describes the properties of a field on the Ispec. The key to each LINCField object on an Ispec is its dataname. This allows the attributes of a LINCField to be accessed using standard Visual Basic collection processing techniques.

For example the following sample of code loops through all the fields on an Ispec displaying the field name and its corresponding value in a message box.

Dim LINCField As LINCField

For Each LINCField In LINCAPP.colLINCFields
      MsgBox LINCField.Name & " = " LINCField.Value
Next LINCField

The value of a particular field on the current Ispec can be retrieved directly by using the value property of a LINCField object.

txtCustName.Text = LINCAPP.colLINCFields("CUSTNAME").Value

The colLINCFields and Value properties have been defined as the default properties of the Component Enabler connection class and the LINCField class respectively. This means that the previous example can be accessed using the shorthand syntax shown following:

txtCustName.Text = LINCApp![CUSTNAME]