Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to delete CHR(13) from BarcodeReader
Message
De
17/06/2007 13:11:46
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
17/06/2007 03:57:14
Reza Meamar
Homa Programming Group
Shiraz, Iran
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01233778
Message ID:
01233799
Vues:
13
>Dear all,
>When i read a barcode , it send a CHR(13) at the end ot returned data.
>so i lost focus and next TextBox get focus.
>How i can delete this CHR(13)?

You can have Fox eat it. In .gotfocus of the textbox

SET CONFIRM ON

and set it off in the .lostfocus, so it would actually require an enter to be pressed. You may need some extra code to NOT set this on when you want the user to type. It's usually done by having a property bound to a chkBarcodeMode checkbox, so
if thisform.lBarcodeMode
   set confirm on
endif
would be in textbox.gotfocus, and chkBarcodeMode.controlsource="thisform.lBarcodeMode"

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform