Programming with Reflection

image\rwnprg32.gif WaitForCommString method


Syntax object.WaitForCommString CommString, Timeout



Begins a wait that is satisfied by the reception of the specified string from the host. The procedure containing the command is paused until the wait expires or is satisfied.

Use WaitForCommString only if you are connecting to your IBM host through a gateway (such as UNIX) that uses streaming mode rather than block mode. (In streaming mode, incoming characters appear on screen in sequence, and existing lines of text scroll out of sight as new lines appear. In block mode, you see complete screen displays, beginning with the logon display screen.) If you are connecting directly to an IBM host, use WaitForDisplayString. You can record a logon macro using the Macro recorder to determine which command is appropriate for your connection.


CommString Argument type: String
The string that can terminate the wait. This string must be received from the host.

Timeout Argument type: String
Specifies an interval of time in HH:MM:SS format that can terminate the wait. If this method times out, an error occurs.


image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command