Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capture Scale Numeric From Weight Bridge
Message
De
27/04/2009 22:36:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Capture Scale Numeric From Weight Bridge
Divers
Thread ID:
01396600
Message ID:
01396600
Vues:
114
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


Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform