I need to stop Textbox Valid event firing when releasing the form. The problem is my form has a cancel button to release the form. If the focus is on textbox and when I try to click on Cancel then the textbox valid event fires.
Hello, I check in valid whether an object with CANCEL=.t. (button property) was clicked. Like this in the valid event : Local oob oob=Sys(1270) If Lastkey()==27 .Or. (Type("oob.cancel")=="L" .And. oob.Cancel==.T. Return .T. ENDIF Other check code Return
checkerg HTH Tom
Proposed as answer byOlaf DoschkeThursday, April 5, 2012 7:09 AM
Marked as answer byYouen ZenWednesday, April 18, 2012 8:26 AM
Hello, I check in valid whether an object with CANCEL=.t. (button property) was clicked. Like this in the valid event : Local oob oob=Sys(1270) If Lastkey()==27 .Or. (Type("oob.cancel")=="L" .And. oob.Cancel==.T. Return .T. ENDIF Other check code Return
checkerg HTH Tom
Proposed as answer byOlaf DoschkeThursday, April 5, 2012 7:09 AM
Marked as answer byYouen ZenWednesday, April 18, 2012 8:26 AM