Attachmate Reflection 2014 .NET API Reference
WaitForStrings(String[],Int32,Int32,WaitForOption) Method


Array specifying one or more strings for which to wait.
wait timeout value (milliseconds). Value of 0 indicates wait indefinitely.
1-based index indicating string in text array that satisfied condition.
Wait options. Multiple options can be OR'ed together.
Waits for one of the specified text strings to be received from the host.
Syntax
'Declaration
 
Overloads Function WaitForStrings( _
   ByVal text() As String, _
   ByVal timeout As Integer, _
   ByRef stringidx As Integer, _
   ByVal option As WaitForOption _
) As ReturnCode
'Usage
 
Dim instance As IScreen
Dim text() As String
Dim timeout As Integer
Dim stringidx As Integer
Dim option As WaitForOption
Dim value As ReturnCode
 
value = instance.WaitForStrings(text, timeout, stringidx, option)
ReturnCode WaitForStrings( 
   string[] text,
   int timeout,
   ref int stringidx,
   WaitForOption option
)

Parameters

text
Array specifying one or more strings for which to wait.
timeout
wait timeout value (milliseconds). Value of 0 indicates wait indefinitely.
stringidx
1-based index indicating string in text array that satisfied condition.
option
Wait options. Multiple options can be OR'ed together.

Return Value

ReturnCode indicating success/failure/status
Requirements

Target Platforms: Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP, Microsoft Windows Server 2003 Terminal Services, Microsoft Windows Server 2008 Terminal Services

See Also

Reference

IScreen Interface
IScreen Members
Overload List

Send Feedback