Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamically Disabled control and GotFocus problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01027590
Message ID:
01027720
Vues:
12
You're welcome, glad I could help. Sometimes the oldies are still goodies. <g>

>Hi Craig
>
>>In the When event of the textbox put your evaluation/condition expression...
>
>Thanks that did the job. The funniest thing is whenever I have to work in FPD (which is pretty often) I always think of When() and Valid(), but as soon as I work on VFP I stop using them altogether.
>
>When I started using VFP, the books (I am self-learned in VFP) made it a point to mention that "you used to use When() / Valid() in FPD but now think ahead move on to GotFocus() / LostFocus()". How things are segregated in our (my) minds is made pretty clear by this experience.
>
>Do we hear parallels here, "you used to use VFP but now think ahead move on to .Net" and you end up using VFP functions ported to .Net :)
>
>>if your expression evaluates to .T. then the control will receive focus, if on the other hand your expression evaluates to .F. then the control will not receive focus.
>
>This has also solved another problem I had in my approach. I had to manually KEYBOARD tab and backtab depending on the last key stroke, now with when() returning .f. VFP handles it.
>
>Thanks a zillion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform