>Hi folks,
>
>Using VFP9.0 I've created a form using the form wizard. It uses the standard text buttons. Now I need to call a method when the SAVE button is clicked. I have tried to put code in the Wizbtns.vcx(txtbtns) but then the buttons do not work properly.
>
>I need to know how to properly test the click event of the Save/Add/Edit buttons click to fire a method that finctions before the save is initiated.
You can also have your code in the button's .when(), and then if you don't want the button's .click() to execute, simply return .f. and it won't even get the focus. The trouble with this approach is that you also need to set .tabstop=.f., or else the .when() my fire when user tabs through controls.