Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mscomm32
Message
 
To
18/02/1999 14:53:28
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00188996
Message ID:
00189112
Views:
17
Brad,
I found that the Microsoft examples were quite straightforward and worked well. How are you checking for the output? And what are the settings on your buffers? You can set these on the property sheet or right-click on the control and select the bottom Properties item.

Your code looks correct, so it may be an error on the receiving end. I usually checked this by telling the modem to dial. Then it was immediately obvious if I had an error.

HTH
Barbara

>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.
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform