Re: Best Practices Issue
- Posted by mistertrik at hotmail.com Feb 08, 2003
- 431 views
I come a little late to this topic, but what about LostFocus? I'm assuming you're all talking about text boxes here. I have a project with about 8 textboxes, and a submit button. I have an onLostFocus proc for each of them (If you want it to update in real-time as the user types, then hook in w32HKeyPress as well as w32HLostFocus.) In each proc, it calls getText and assigns it to the relevant variable. When the submit button is pressed, it will call each of those lostFocus procs, just to be sure that the information is correct. Is that the sort of thing you're looking for? ===================================================== .______<-------------------\__ / _____<--------------------__|=== ||_ <-------------------/ \__| Mr Trick >From: "C. K. Lester" <cklester at yahoo.com> >Reply-To: EUforum at topica.com >To: EUforum <EUforum at topica.com> >Subject: Re: Best Practices Issue >Date: Fri, 7 Feb 2003 21:39:31 -0600 > > >On Friday 07 February 2003 08:21 pm, you wrote: > > > > C.K., > > > > You could set a timer to check the variables? But I'd check first to be > > *sure* there's no event you could trap. > >Well, if I don't use variables (that is, if I depend on the controls to >functionally be the variables), then that's not a problem, because the >onChange() event will fire when the control's value changes... > >But what if I have to add six control values together? What if in the >future >that changes? What if it's dynamic? > >Actually, as I think about it I can see ways to do that stuff... but it >wasn't >obvious to me at first. And, as anybody who has seen my sample code, I like >to program for the future as much as I do for the present. That means, when >I >want to make changes in functionality in my programs in the future, it's >going to be easy- not a lot of code upheaval... > >==^^=============================================================== >This email was sent to: mistertrik at hotmail.com > > >TOPICA - Start your own email discussion group. FREE!