Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A strange situation
Message
De
04/10/2006 11:45:31
 
 
À
03/10/2006 23:37:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01159210
Message ID:
01159390
Vues:
20
What are the other settings of MSCOMM and what event is catching an input from the scale?

>Dear Experts
>
>I am developing a Weight Bridge Software.
>To get data from Indicator device I use following procedure.
>
>THISFORM.MSCOMM.PORTOPEN=.T.
>Abc=THISFORM.MSCOMM.INPUT
>IF LEN (ALLTRIM(SUBSTR(A,2,8)))>0
>THISFORM.TEXT1.VALUE=VAL(SUBSTR(A,2,8))
>ENDIF
>THISFORM.MSCOMM.PORTOPEN=.F.
>
>That above work fine in VFP6 on Windows98 platform.
>But when I test this procedure in WindowsXP, following situation appears
>
>Abc=THISFORM.MSCOMM.INPUT
>
>In the above line when I put mouse pointer on (THISFORM.MSCOMM.INPUT)
>then it shows following data
>
>30#& 30#& 30#& 30#&
>
>But variable ABC holds nothing, so text1 appears empty.
>My question is: why MSCOMM.INPUT value does to store into variable abc.
>
>Please help
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform