Re: Best Practices Issue
- Posted by jbrown1050 at hotpop.com Feb 08, 2003
- 441 views
Unless you use a custom type and use side effects that is ... ... but even that is not recommended (not to mention, messy coding). :/ jbrown On Fri, Feb 07, 2003 at 11:46:40PM +0000, Pete Lomax wrote: > > On Fri, 7 Feb 2003 12:29:48 -0600, "C. K. Lester" <cklester at yahoo.com> > wrote: > > >Hey, Jonas, thanks for the response. Here's a follow-up for you (and anybody > >else who wants to chime in): what do you do if a value changes in your > >variable, but not as a result of the control itself? > Umm.... shades of pondering that come back to haunt me. I hang my head > in shame to remember I once expected this to be someone else's > responsibility..... > > If you have for example say: > > integer txt_Total > > txt_Total=3 > --[1] > ... > txt_Total=5 > --[2] > ... > txt_Total=7 > --[3] > > You cannot (would not and do not) expect an "event" to be generated at > points [1], [2], and [3]. You quite obviously just code it yourself. > > The point is, anywhere you do a setText() or similar, you must have > all the code to handle the changes *your* program just made, sorry. > > Embarrassingly obvious once you think it through > > Pete > > ==^^=============================================================== > This email was sent to: jbrown1050 at hotpop.com > > > TOPICA - Start your own email discussion group. FREE! -- /"\ ASCII ribbon | \ / campain against | Linux User:190064 X HTML in e-mail and | Linux Machine:84163 /*\ news, and unneeded MIME |