Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create 'DIAL' commandbutton?
Message
From
29/04/2002 05:46:41
 
 
To
28/04/2002 22:57:20
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00650216
Message ID:
00650277
Views:
23
Put MS Comm control 6.0 on the form and issue:

comDialPhone.CommPort = 1 ' or change 1 to desired COM port
comDialPhone.Settings = "9600,N,8,1"
comDialPhone.PortOpen = True
comDialPhone.Output = "ATDT" & strPhoneNumber & vbCr
'Put here code, which wait phone to be picked up. Next row will close
'phone line
comDialPhone.PortOpen = False

strPhoneNumber is string variable, contains phone number you want dial to.

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform