Hi, all. I have an issue.
I'm doing this:
The problem is, it always comes up false. Now, I know a potential solution is to use instead:
Unfortunately, I need a more general solution for a case in which I will be sending arbitrary commands to a host screen and may not know in advance what text I'm looking for -- particularly, when all the text I *know* will be on the result screen is already on the screen on which I'm entering the commands. Is there a more general and *reliable* way to know that the host has finished sending information and all the information is available to the Screen object?
Thanks for any insight,
--
Rob
I'm doing this:
Code:
Dim esys As ExtraSystem
Set esys = CreateObject("Extra.System")
Dim essn As ExtraSession
Set essn = esys.Sessions.Open("Session1.EDP")
essn.Visible = True
Dim escr As ExtraScreen
Set escr = essn.Screen
escr.Synchronous = 1
Dim eoia As ExtraOIA
Set eoia = escr.OIA
Do While eoia.XStatus = xBUSY
DoEvents
Loop
Ef escr.search(<startup text>) = "<expected text>" Then
<do something>
Else
<do something else>
End If
The problem is, it always comes up false. Now, I know a potential solution is to use instead:
Code:
dim blnFound as boolean
blnFound = escr.WaitForString("<expected text>")
If blnFound then
(etc)
Unfortunately, I need a more general solution for a case in which I will be sending arbitrary commands to a host screen and may not know in advance what text I'm looking for -- particularly, when all the text I *know* will be on the result screen is already on the screen on which I'm entering the commands. Is there a more general and *reliable* way to know that the host has finished sending information and all the information is available to the Screen object?
Thanks for any insight,
--
Rob