General information
Category:
ActiveX controls in VFP
No problem, Rhonda. OK, the control isn't 100% mscomm compatible. See changes below and try again:
>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.
oMbxCom.PortOpen()
>*: Dial the number. The chr(13) is needed to complete the modem command sequence
>* oMbxCom.Output = "ATDT555-555-5566" + CHR(13)
oMbxCom.PutString("ATDT555-555-5566" + CHR(13))
>WAIT TIMEOUT 30
>* oMbxCom.Output = "ATH0" + chr(13)
oMbxCom.PutString("ATH0" + chr(13))
>*: Close the com port
>* oMbxCom.Open = .F.
oMbxCom.PortClose()
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only