Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending a phone call
Message
De
13/07/2001 10:38:28
 
 
À
13/07/2001 10:28:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00530220
Message ID:
00530245
Vues:
21
>>I'm new to MSCOMM32. I took some example by doing some searches. I simply what to dial a phone number. I have this code presently:
>>
>>
>>oPhone=CREATEOBJECT('Form')
>>oPhone.AddObject('Phone','Olecontrol','MSCOMMLib.MSComm')
>>oPhone.Phone.CommPort=1
>>oPhone.Phone.PortOpen=.T.
>>oPhone.Phone.Output='ATDT123-4567'+CHR(13)
>>oPhone.Phone.PortOpen=.F.
>>
>>
>>When I run the program, I see the light changing on my modem but nothing happens. What am I missing?
>
>Are you giving the control time to send the data ? According to the help setting PortOpen to False clears the transmit buffer. Try waiting until OutBufferSize = 0.
>
>Another thing to check would be the baud rate setting on the control & modem.
>
>HTH

OutBufferCount not OutBufferSize, sorry
Len Speed
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform