Hi all,
I have a main menu form, containing a list of widgets and two buttons, Add and Edit. I have used the Macro Builder to link each of the buttons to the CRUD form behind. On the CRUD form, there are data input boxes for all properties of the selected widget, plus a Delete button. However, I only want that Delete button to be active in the Edit mode, not the Add mode. Using the onGotFocus event of the CRUD form, how would I go about detecting the add/edit/read-only state, in order to enable or disable the delete button?
Thanks in advance,
Martin