Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capture Scale Numeric From Weight Bridge
Message
From
27/04/2009 22:36:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Capture Scale Numeric From Weight Bridge
Miscellaneous
Thread ID:
01396600
Message ID:
01396600
Views:
115
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
Map
View

Click here to load this message in the networking platform