Example

The following example shows how to search for the first occurrence of a text string in the presentation space of the connection associated with this lsxECLPS object.

' Create an lsxECLPS object associated with connection A
dim PSObj as new lsxECLPS("A")
dim tRow as Long
dim tCol as Long
 
tRow = 1
tCol = 1
 
' Search for a string in presentation space starting from the
' beginning of the presentation space.
if PSObj.SearchText("Alex",1) then
   call found...
 
' Search for a string in presentation space starting from
' a specific location, the search direction is forward.
if PSObj.SearchText("ALEX", 1, tRow, tCol) then
  call found...