Grid TO selective Form

I wonder if anybody has implemented selective form to edit grid record. Here is what I need to implement:

  1. User opens a grid with records listed
  2. User click on ADD or EDIT button
  3. Based on some global variable (ie. GloFromMode) I need to open Form1 OR Form2 OR Form3
    here is a pseudo code

I

F GloFormMode=1
Open Form1
ELSIF GloFormMode=2
OpenForm2
ELSEIF GloFormMode=3
OpenForm3
ELSE
ShowErrorMessage
ENDIF

I believe this can be done by adding an extra button to the grid (record) for EDIT and adding extra button to the Toolbar for ADD, although I wonder if there is any other method to keep existing buttons and standard SC behavior.

ARTHUR

No, the way to go is how you say. Create new buttons and virtual fueld for edition