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.