
WIN95 >>>> please help >>>NO SUCH THING AS SIMPLE CO....
Quote:
> Hi:
> Sorry but I am FruStRAAAtEd.....
> First off i am a beginner using vb3 pro and selfteaching...
> I used to use the following to simply dial and free the modem for voice,
> but now it just won't work....
> as a matter of fact, i've gone and gotten several samples vbkb, vbsamps such as
> vbcomdem and commdemo, and NOTHING will connect to my modem...
> Unfortunately, i don't yet understand the global constant and API
> terminology...
> THIS used to work...
> PhoneNumber$ = "2346789"
> Open "COM2" For Output As #1
> Print #1, "ATZ"
> Print #1, "ATDT" & PhoneNumber$ & Chr$(13)
> Close #1
> Absolutely desperate...
> Thanks for the help.
Go to the Tools Option from the Main Menu, Select Custom Controls, add the
Microsoft Communications Custom Control. Then add the following code
Sub Form_load()
PhoneNumber$ = "2346789"
MSComm1.CommPort = 2
MSComm1.Settings = "9600,N,8,1"
MSComm1.InputLen = 0
MSComm1.PortOpen = True
MSComm1.Output = "ATDT + PhoneNumber$ + Chr$(13)
ReturnString = MSComm1.Input
MSComm1.PortOpen = False ' Close port
Sub End
Any other questions???
Mark L. Crump