OpenPort Method

 

Description   This method opens either a COM port or Brooktrout or GammaLink fax channel.

Usage            [FAX].OpenPortPort

Returns        Zero on success, a negative error code otherwise. This function does not check for the modem or channel on the given port, this should be checked for by the TestPort method.

 

Remarks       Port                   String         Name of a COM port or fax channel to be open. The name of the port must be in the format ‘COMX’ where X is the number of channels starting with 1.

                      To open a Brooktrout fax channel, the parameter should be “BChannelX”, where X is the number of channels starting with 1.

                      To open a GammaLink fax channel, the parameter should be “GChannelX”, where X is the number of channels starting with 1.

See Also        ClosePort, TestModem method

Remarks       When using a Brooktrout TR1034 card you should set the number of rings to 1 in the Brooktrout Configuration Tool. The card will answer an incoming call after detecting the number of rings specified by the second parameter of SetRings function.