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
Titre:
Firing an event depending on 2 diferent LEN's
Divers
Thread ID:
00854321
Message ID:
00854321
Vues:
45
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?
.......
DO WHILE .T.
      ME.Work()
ENDDO
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform