Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamically Disabled control and GotFocus problem
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01027590
Message ID:
01027627
Views:
14
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.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform