Hi Tariq, try this code, there are more examples just serach for
MSCommLib AND FoxPro in the internet, good luck
LPARAMETER tcPhoneNumber,beep_message
*Here I assume the phone number is valid
LOCAL lnCommPortNo,loObjComm
lnCommPortNo = 1 && Port number
loObjComm = CREATEOBJECT("mscommlib.mscomm")
loObjComm.commport = m.CommPortNo
loObjComm.Settings = "1200,N,8,1"
loObjcomm.PortOpen = .T.
loObjComm.OUTPUT = "AT&f&w&w1" && Reset the modem
loObjComm.OUTPUT = "ATA" + CHR(13) && Open the line
loObjComm.OUTPUT = "ATZ" + CHR(13)
WAIT "DIALING " + m.lcPhoneNumber WINDOW TIMEOUT 3
loObjComm.Output = "ATDT" + lcPhoneNumber
WAIT "Dialing..." WINDOW TIMEOUT 16
loObjcomm.Output = "ATHO" + CHR(13)
WAIT "Hanging line.." WINDOW TIMEOUT 4
ObjComm.PortOpen = .F.
RELEASE ObjComm
WAIT "Closing port..." WINDOW TIMEOUT 4
>Dear Experts,
>
>I want to use Tapi for Telephone dialing, with visual foxpro.
>If someone is already using this activex control on vfp forms,
>please give me some tricks and tips etc.
>
>Thanks in advance
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould