Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do you want to delete this record?
Message
De
06/12/2000 11:39:21
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Do you want to delete this record?
Divers
Thread ID:
00449988
Message ID:
00449988
Vues:
58
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform