Groups | Search | Server Info | Login | Register
Groups > comp.databases.xbase.fox > #52
| From | Dan Freeman <dan@dfapam.com> |
|---|---|
| Newsgroups | comp.databases.xbase.fox, microsoft.public.fox.programmer.exchange |
| Subject | Re: Using LostFocus instead of Valid |
| Date | 2013-01-29 10:11 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <ke93db$icl$1@dont-email.me> (permalink) |
| References | <n4ndg89bgf1hjj9umpsrjniov9ju022v5d@4ax.com> |
Cross-posted to 2 groups.
Gene Wirchenko expressed precisely : > Dear Foxers: > > I have used Valid for validation in my app since the beginning. I > would now like to change it over to using LostFocus since I can not > SetFocus when there is a Valid being executed. > I think this is wrong-headed. It isn't one or the other. In the old days, we used Valid for *both* validation and navigation because it's the only thing we had. Now they're separate acts that mean different things. Valid determines whether or not focus is allowed to leave the current control. Lostfocus happens after focus has left the control, implying that validation has been satisfied, and allows you to interfere in normal tab order. If you need your validation to move focus to (for example) the previous control, then RETURN -1 in the Valid method, but it's still an act of validation. They're really very different conditions and using one for the other's purpose seems like you're swimming against the tide. You wouldn't use Click() to handle a Keypress(). Dan
Back to comp.databases.xbase.fox | Previous | Next — Previous in thread | Next in thread | Find similar
Using LostFocus instead of Valid Gene Wirchenko <genew@telus.net> - 2013-01-28 12:28 -0800
Re: Using LostFocus instead of Valid Bernhard Sander <fuchs@kein.spam> - 2013-01-29 13:59 +0100
Re: Using LostFocus instead of Valid Gene Wirchenko <genew@telus.net> - 2013-01-29 10:30 -0800
Re: Using LostFocus instead of Valid Dan Freeman <dan@dfapam.com> - 2013-01-29 10:11 -0800
Re: Using LostFocus instead of Valid Gene Wirchenko <genew@telus.net> - 2013-01-29 15:07 -0800
Re: Using LostFocus instead of Valid Dan Freeman <dan@dfapam.com> - 2013-01-29 21:50 -0800
Re: Using LostFocus instead of Valid Gene Wirchenko <genew@telus.net> - 2013-01-30 12:19 -0800
csiph-web