WaitFor

Top  Previous  Next

This method waits for a screen containing the specified string. In the first case shown below, it returns True if the wait was successful and False if the Timeout period has expired. In the second case it receives an array of

strings as parameter, and returns an integer indicating the number of the string (into the array of strings) that was found.

 

Visual Basic Syntax

 

[Boolean =] Screen.WaitFor(Value As String, [TimeOut] As Integer, ResetWait As Boolean)

 

[Integer =] Screen.WaitFor(Values As String, [TimeOut] As Integer, ResetWait As Boolean)

 

Delphi Syntax

 

[WordBool :=] Screen.WaitFor(Value:string;[TimeOut]:Integer; ResetWait:Boolean);

 

[Integer :=] Screen.WaitFor(const Values:Array of string;[TimeOut]:Integer; ResetWait:Boolean);

 

 

Parameters

 

Parameters

Description

Value

The string of characters expected to be found.

Values

The array of strings where one of them is expected to be found. In Visual Basic this is a string with several values separated by ";"

TimeOut

Optional parameter measured in milliseconds.

ResetWait

While this parameter is false, continue lopping until the expected string is found.