Thanks for your post David.
And what i mean is that i placed the wizstyle class in my form and in this you'll find the top, previous, next, bottom, find, print, add, edit, delete, and exit buttons. When you push the add button appears the save and undo button, the same for the edit button; i placed in the add button some code that knows when the add button is pushed and then the save button, i'll do this with the next sentence:
if this.parent.editmode then
....
else
....
endif
I need to know how is for the undo button?
And how it is for the edit, save, undo buttons?