On Sep 02, 2006, at 15:06 UTC, Steven Hedgepeth wrote: > In troubleshooting my code, I realized that setting a control in code triggers > the control's event, in this case the checkbox's default event. Is there a > better way to solve this situation than using a global boolean variable at the > beginning of an event so that I can prevent the remainder of the event from > executing if I trigger the event from code rather than the user triggering the > event from the user interface?
Yes: use a non-global boolean variable (a property of the window or of the control subclass). And no, there is no substantially better way than that. Best, - Joe -- Joe Strout -- [EMAIL PROTECTED] Verified Express, LLC "Making the Internet a Better Place" http://www.verex.com/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
