Example

The following example shows how to search for the lsxECLField object that contains a specified string.

' Create an lsxECLPS object associated with ECL Connection A
dim myPSObj as new lsxECLPS("A")
 
dim myFieldObj as lsxECLField
 
' Refresh the list of fields
myPSObj.lsxECLFieldList.Refresh
 
' Search for the field containing the specified string.
' The search direction defaults to forward and the search
' will start from the beginning of the presentation space.
set myFieldObj = myPSObj.lsxECLFieldList.FindFieldByText("Target Text")