Wait Method

Top  Previous  Next

General wait mechanism. This method basically waits until the mainframe application turns in an unlocked state and is able to receive input data.

 

VB.NET Syntax

 

[Boolean] = tnxxxx.Wait ([TimeOut] As Integer)

 

C# Syntax

 

[bool] = tnxxxx.Wait (int [TimeOut]);

 

The TimeOut parameter is measured in milliseconds.

 

 

Remarks

 

The Timeout parameter is optional, assuming the WaitTimeout property value by default. This method returns True if the wait was successful and False if the timeout period has expired.

This method uses alternatively the WaitForConnect, WaitForUnlock and WaitForNewScreen methods, according to the actual mainframe state (disconnected, locked or unlocked).

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, WaitForConnect, WaitForUnlock and WaitForNewScreen methods.