Suspends script execution until the desired text is found
in the host screen.
- Parameters
- TextStr
- The text string that
you want to search for in the host screen.
- RowValue
- Specifies the start
row position in the host screen where the search is to begin.
- ColumnValue
- Specifies the start
column position in the host screen where the search is to begin.
- TimeoutValue
- The number of seconds
to wait before returning with a session is busy error code.
- Returns
- 0 for success; or a non-zero error code. Refer to Error codes for a complete listing of error code descriptions.
- Remarks
- The EMWaitForText function can be used to verify
that a specific host screen is being displayed before continuing with
script execution.
- Example
EMConnect "A"
ResultCode = EMWaitForText( "S103XWRM", 1, 1, 10 ) 'wait for text
If ( ResultCode != 0 ) Then
MsgBox "Error " & ResultCode & " waiting for text.", 48
End If