Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mscomm32
Message
From
18/02/1999 14:53:28
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Mscomm32
Miscellaneous
Thread ID:
00188996
Message ID:
00188996
Views:
44
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.
Next
Reply
Map
View

Click here to load this message in the networking platform