Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create 'DIAL' commandbutton?
Message
From
29/04/2002 05:59:19
 
 
To
28/04/2002 22:57:20
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00650216
Message ID:
00650278
Views:
21
This message has been marked as the solution to the initial question of the thread.
>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.

Sorry, I wrongly think you write in VB...

Equivalent code in VFP:

ThisForm.comDialPhone.CommPort = 1 && or change 1 to desired COM port
ThisForm.comDialPhone.Settings = "9600,N,8,1"
ThisForm.comDialPhone.PortOpen = .T.
ThisForm.comDialPhone.Output = "ATDT" + strPhoneNumber + chr(13)
*Put here code, which wait phone to be picked up. Next row will close
*phone line
ThisForm.comDialPhone.PortOpen = .F.

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