FindText
This function is used to determine if a specified text string is currently displayed on the host screen. It can be used to look for the text in a specific screen location or to search the entire host screen for the text. It returns True if it is found. Optionally, it can also return the screen coordinates where the text was found.
Syntax: bFound = SM.FindText(sText, iStartCol, iStartRow, [vFoundCol], [vFoundRow])
bFound (Boolean) Returns True if the specified text string was found.
sText(String) Text string to be searched for.
iStartCol(Integer) the screen column to search for the text. Specify a column position of ‘-1’ (minus 1) to search for the text in any screen column position.
iStartRow(Integer) the screen row to search for the text. Specify a row position of ‘-1’ (minus 1) to search for the text in any screen row.
vFoundCol(Variant) Optional – the column position where the text was found
vFoundRow(Variant) Optional – the row position where the text was found.
Example:
Dim bFound As Boolean
bFound = SM.FindText("UserID", 3, 5)