Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CommTools
Message
From
12/05/2004 14:49:52
 
 
To
12/05/2004 11:24:02
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00902864
Message ID:
00903313
Views:
12
Jim,

Sorry to bother you again, but I am confused about something. In the help, I see where they refer to an Open property to open the comm port, but I do not see the property anywhere in the APAX1 activex. Do you have any idea what I may be doing wrong? I am trying to run a program to just dial the number at the moment and I can't get it to dial.


The code I am using:

PUBLIC oMbxCom
oMbxCom = CREATEOBJECT('Apax1.Apax')

oMbxCom.MsCommCompatible = .T.
oMbxCom.ComNumber = 3
oMbxCom.CommPort = 3 && Use Comm3, The third Serial Port.
*!* oMbxCom.Settings = "14400,N,8,1" && 14.4 Kbaud, No Parity,

oMbxCom.Baud = 38400
oMbxCom.Parity = 0
oMbxCom.DataBits = 8
oMbxCom.StopBits = 1

*: Open com port
oMbxCom.Open = .T.

*: Dial the number. The chr(13) is needed to complete the modem command sequence
oMbxCom.Output = "ATDT555-555-5566" + CHR(13)

WAIT TIMEOUT 30
oMbxCom.Output = "ATH0" + chr(13)

*: Close the com port
oMbxCom.Open = .F.



Thanks,
Rhonda
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform