Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using MSComm with Visual FoxPro
Message
 
To
12/07/2000 14:52:21
Brad Stickley
Parker Pneumatic Div. North America
Wake Forest, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00391344
Message ID:
00435731
Views:
8
Hi Brad.

I saw this message and I am trying to use the ActiveX controls. I hope you won't mind helping me out with this. I downloaded the demo version and am trying to use it with a scale to read package weight. Problem is I have no idea where to put the code. I have never used ActiveX before.

The doc says:

ThisForm.Olecontrol1.Open("COM1:", "baud=9600 parity=N data=8 stop=1")
ThisForm.Olecontrol1.SetHandshaking(2) && 'Serial ports Only. 0 = None, 1 = Xon/Xoff, 2 = Hardware
ThisForm.Olecontrol1.WriteString("Hello World ")
ThisForm.Olecontrol1.Close()

I have no clue where to put this stuff? Can you assist me?

I have a text box on the form to capture weight of package, I want it to automatically call the scale and put the data in the textbox.

Any help would really be appreciated.

Thanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform