>Hi all,
>
>Before exiting a VFP form, I need some code to execute, to update certain parameters through the command 'thisform.cmdUpdate.click'. Could anyone tell me how this is triggered a VFP form? (Which event, and how)
>
>Thanks in advance.
>
>Regards,
>
>Steve
Why not put that code in separate method of the form and call it from Click event of that button?
i.e. Make a new method in that form name it BeforeExit, add a property in that form and call it BeforeExitIsExecuted
In Click event of that button:
thisform.BeforeExit()
thisform.Release()
thisform.BeforeExit()
IF NOT thisform.BeforeExitIsExecuted
thisform.BeforeExitIsExecuted = .t.
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.