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.