Hi, I have a number of events that call the same subroutine. The events may
be a mixture of button events or lose focus events and I need to process differently depending on which event it is. Eg, A search button is the same a change value of text field and exit (loose focus). But if the whole screen has lost focus because another application has been clicked on nothing happens. Ie in pseudo code: sub __called_by_events { if ((loose focus for field and not loose focus window) or press button) {do something} return; } But its not clear to me what methods work for both focus events and button events without getting an 'undefined' error. Also I'm struggling with the syntax. Regards Steve
<<Blank Bkgrd.gif>>