General information
Category:
ActiveX controls in VFP
Title:
Capture Scale Numeric From Weight Bridge
Dear all
I want capture scale from weight bridge with this coding
in mscomm init event
If !This.PortOpen
THIS.Settings = "9600,N,8,1"
THIS.CommPort = 1
THIS.PortOpen = .T.
ELSE
MESSAGEBOX('PORT ALREADY OPEN')
Endif
*Destroy event:
This.PortOpen = .f.
*oncomm event
*** ActiveX Control Event ***
IF Thisform.olecontrol1.InBufferCount > 0
SDATA = SDATA+ALLTRIM(THISFORM.OLECONTROL1.Input)
THISFORM.TEXT1.Value=SDATA
ENDIF
******
My problem is sometimes the value appear 3 variant diferent
how can i capture real value from wb
Best Regards
Leosan
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