Searches the host screen for some specified text.
- Parameters
- SearchStr
- Specifies the text
to search for.
- RowVal
- On input, the variable
containing the row position where the search is to begin. On output,
this variable contains the row position where the text was found.
- ColumnVal
- On input, the variable
containing the column position where the search is to begin. On output,
this variable contains the column position where the text was found.
- Returns
- 0 for success; or a non-zero error code. Refer to Error codes for
a complete listing of error code descriptions.
- Remarks
- When the Search function returns, the RowVal and ColumnVal variables
contain the position where the text was found. If the text was not
found, or if the function returned an error, the RowVal and ColumnVal variables
contain zero.
- Example
Set bzhao = CreateObject( "BZWhll.WhllObj" )
bzhao.Connect "A"
row = 1
col = 1
bzhao.Search ">>", row, col
bzhao.MsgBox ">> is at position " & row & ", " & col, 0