WaitFor Method

Top  Previous  Next

Wait for an screen containing the specified string.

 

VB.NET Syntax

 

[Boolean] = tnxxxx.WaitFor (StrValue As String, [TimeOut As Integer])

 

[Integer] = tnxxxx.WaitFor (StrValues As Array of String, [TimeOut As Integer])

 

C# Syntax

 

[bool] = tnxxxx.WaitFor (string StrValue, [int TimeOut]);

[int] = tnxxxx.WaitFor (string[] StrValues, [int TimeOut]);

 

The TimeOut parameter is measured in milliseconds.

 

 

Remarks

 

The Timeout parameter is optional, assuming the WaitTimeout property value by default. In first form, this method returns True if the wait was successful and False if the timeout period has expired. In second one, returns the index of the string in StrValues that was found at the current screen and -1 if the timeout period has expired.

 

If you pass a timeout value in the Timeout parameter of this method, the value of the property WaitTimeout will not have any effect.

 

See also WaitTimeout property, WaitForScreen, WaitForUnlock and WaitForNewScreen methods.

 

 

 

 

Copyright © 2002-2007, Cybele Software Inc. All rights reserved.