
hanging up w/ mscomm.vbx?
Quote:
> >> Does anyone know how to propertly hangup using mscomm.vbx? I tried
> >> setting the property, PortOpen, to false but that releases the comm
> >> port but doesn't hang up the phone.
> >> Thanx.
> >> Phil Chin
> > Ret = MSComm1.DTREnable 'Save current setting
> > MSComm1.DTREnable = True 'Turn DTR on
> > MSComm1.DTREnable = False 'Turn DTR off
> > MSComm1.DTREnable = Ret 'Restore old setting
> >--
> your modem should have a hangup command something like: ATH0, look in
> your
> modem book, send the command then you should be able to close the port
> ( and
> even read the message from the modem that connection is lost . .)_
> cpm
I like the drop DTR method because it works if your modem is online (in
connect mode, I mean). To use the ATH0 method while connected you must
first send "+++", wait a second or 2 to go into command mode, then send the
hangup command.
--
Bob
Author of DIALM and DIALW phone dialers.
Latest Versions: http://www.execpc.com/~bwilcox