General information
Category:
ActiveX controls in VFP
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only