Re: Best Practices Issue
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Feb 07, 2003
- 442 views
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=3D3 --[1] ... txt_Total=3D5 --[2] ... txt_Total=3D7 --[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