WaitForData Method

Top  Previous  Next

Waits until data from the host printing process occurs. This method is used with Tnb3287X and Tnb3812X printer emulation controls and indicates that data has arrived.

 

Visual Basic Syntax

 

[Boolean] = TNBXSync.WaitForData ([TimeOut] As Integer)

 

Delphi Syntax

 

[Boolean] := TNBXSync.WaitForData ([TimeOut]: integer);

 

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.

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.