Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Firing an event depending on 2 diferent LEN's
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00854321
Message ID:
00854324
Vues:
19
>Hey, I'm facing an issue here. I am trying to convert two form in a single one, everthing is just the same excep that the keyfield is diferent length
>the first one is 15 chars and the second one is 17.
>
>I don't have problems if the value is keyed, or when the value is scan and reach 17 chars. the problem I have is because certain things:
>
>1. The Scanner doesn't have a carriage return automatic and.... won't have. that is not an option.
>2. The value must be scan, it can be keyed but the user won't do that since he has a barcode.
>
>so the question here is: how do I fire the right method or UDF depending on the value if it is 15 or 17?
>
>I can't do it in the lost focus because if it is 15 this won't fire the event. can't do it in the key press, because may be when the text reach 15 the method will fire even if the user meant to key 17.
>
>any sugestion?

Hello Selim

A timer object can be turned enabled in keypress method after a 15 character.. So, you give to the user's scan some seconds to go on with just 15..

At the lostfocus event turn that timer object disabled..

HTH


Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform