
How to dial the phone number with VB5
Good day to all, I am desperatly trying to dial a phone number thru code but
it does not work.
Her is below my code for the cmdDial_click event
PhoneNumber$ = txtNumero.Text
If optPort1.Value = True Then
Open "COM1" For Output As #1
Print #1, "ATDT" & PhoneNumber$ & Chr$(13)
Close #1
End If
If optPort2.Value = True Then
Open "COM2" For Output As #1
Print #1, "ATDT" & PhoneNumber$ & Chr$(13)
Close #1
End If
If optPort3.Value = True Then
Open "COM3" For Output As #1
Print #1, "ATDT" & PhoneNumber$ & Chr$(13)
Close #1
End If
If optPort4.Value = True Then
Open "COM4" For Output As #1
Print #1, "ATDT" & PhoneNumber$ & Chr$(13)
Close #1
End If
Theorically, it should work easily as it did in VB4-32 but in VB5????????
Not at all
Am I missing something ??
Daniel Caron
Thetford Mines,Qc,Canada