Example

This example finds the location of the "Main Level" string in the display memory:

Sub FindMainLevel ()

With Session

Dim found As Integer

found = Session.FindText("Main Level", .DisplayMemoryTopRow, 0)

If found Then

MsgBox "String found at row " & .FoundTextRow & _

", column " & .FoundTextColumn & "."

Else

MsgBox "String not found."

End If

End With

End Sub