Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mscomm32
Message
De
18/02/1999 14:53:28
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Mscomm32
Divers
Thread ID:
00188996
Message ID:
00188996
Vues:
45
I am trying to use the mscomm32 control on a form.

I the control on the form. A command button and the following code.

thisform.olecontrol1.CommPort = 2
* 9600 baud, no parity, 8 data, and 1 stop bit.
thisform.olecontrol1.Settings = "9600,N,8,1"
* Open the port.
thisform.olecontrol1.PortOpen=.T.
if thisform.olecontrol1.portopen=.f. then
messagebox ("Port not open")
endif
thisform.olecontrol1.Output="GO"
thisform.olecontrol1.Output=chr(13)
thisform.olecontrol1.PortOpen = .f.


I am getting some response with the msg box so I know that the control is working. However, when the port opens fine, the command doesn't seem to go to the port.

This is the first time I have used the mscomm32 control and I am not familiar with it.

I got the example from microsoft for VB and modified it for Fox.

If anyone has any suggestions, I would appreciate the help.

Brad.
He is there and He is not Silent.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform