Admin Production rocket
Current Publication

WaitForString(String,Int32,WaitForOption) Method

InfoConnect Desktop InfoConnect .NET API Guide V18.0.1
Rocket® InfoConnect Desktop (formerly a product of Micro Focus or formerly a product of Open Text) documentation that was created prior to Rocket Software's acquisition of certain products from OpenText may contain outdated references to "Micro Focus” or “OpenText”, which are trademarks of OpenText. Rocket Software is not affiliated with Micro Focus or OpenText and has rebranded these products as Rocket® products.
text to wait for.
wait timeout value (milliseconds). Value of 0 indicates wait indefinitely.
Wait options. Multiple options can be OR'ed together.
WaitForString(String,Int32,WaitForOption) Method
In This Topic
Waits for the specified text to be received from the host.
Syntax

                     
                     
'Declaration
 

                     
                     
Overloads Function WaitForString( _
   ByVal text As String, _
   ByVal timeout As Integer, _
   ByVal option As WaitForOption _
) As ReturnCode

                  

                     
                     
'Usage
 

                     
                     
Dim instance As IScreen
Dim text As String
Dim timeout As Integer
Dim option As WaitForOption
Dim value As ReturnCode
 
value = instance.WaitForString(text, timeout, option)

                  

Parameters

text
text to wait for.
timeout
wait timeout value (milliseconds). Value of 0 indicates wait indefinitely.
option
Wait options. Multiple options can be OR'ed together.

Return Value

ReturnCode indicating success/failure/status
See Also