CopyFrom Fields

Component Enabler assigns each field in a Copy.From area a unique name. For example, given a field called CUSTNO in a Copy.From area, the copy of CUSTNO on the second line of the Copy.From area would be given the name CUSTNO__AT_01, and the copy on the third line, CUSTNO__AT_02. This means that a field within a Copy.From area could be accessed directly by field name using syntax similar to the syntax described above and shown in the following example:

txtCustNo.Text = LINCApp![CUSTNO__AT_01]

Alternatively, passing a second, optional, parameter to the colLINCField’s call can retrieve the value. For example:

txtCustNo.Text = LINCApp![CUSTNO__AT_01]

This second form makes it easy to access the LINCFields within some form of loop control statements.