Hello Experts...
I have weight scale attached to a COM1 port. Truck goes over the scale and it sends multiple readings to a VFP application via COM1 port. I can see the data comming through Hyper Terminal but I always get 0 through VFP application. I use the following code to capture the weight through COM1 port:
SET OLEOBJECT ON
oComm = CREATEOBJECT('MSCOMMLib.MSComm')
oComm.CommPort = 1
oComm.Settings = "1200,N,8,1"
oComm.InputLen = 0
oComm.PortOpen = .T.
II = oComm.input
=MESSAGEBIOX(II)
oComm.PortOpen = .F.
RETURN
Can someone tell me what I am doing wrong ?
Please...
Thank You.
Raza Malik