VFP 6.0
In Delete button (Click Event) of the form with parent(main form)/child(grid) relationship
nAnswer = MessageBox('Do you want to delete this record?',4)
IF nAnswer = 6
DELETE
SKIP -1
IF BOF()
LOCATE
ELSE
SKIP
IF EOF()
SKIP -1
ENDIF
ENDIF
ENDIF
ThisForm.REFRESH
This is what I have so far. I like to ask how to design this in regards if wanting to delete the parent record or the child record? Does this go by where the cursor is? I was wondering if, in general, this go about like this... 'Do you want to delete the person or the authorization?' (where the 'person' is parent and the 'authorization' is in the grid). Or it still need to be based on where the cursor is?
This is for the delete issue. I have not started on the 'Add' button yet, which it will be similar as 'Do you want to add the person or the authorization?'
I need help with how to design this and thank you.
Chuck
Today is tomorrow's yesterday.