General information
Category:
Coding, syntax & commands
>u can't set focus in a valid of a control
>can only do it in gotfocus or lostfocus
>i guess i u use the vb approach to of creating yr valid in lostfocus of the control.....could be a much better idea ... like make a baseclass and create a
>method as uservalid in the lostfocus
>hmmmm.... this letter's giving me ideas !!!
>(why not have 2 levels of valid for a control )
Hi Rajatkanti:
Yeah, you're right about not in the valid method. I forgot that, but what I have been able to do is have the valid invoke a custom method, like Method vOkay2Save(), which can return .T. or .F. or 0 but also can SetFocus as desired. Kinda like the best of both worlds...
HTH
Rob
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only