Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do you want to delete this record?
Message
From
06/12/2000 11:39:21
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Do you want to delete this record?
Miscellaneous
Thread ID:
00449988
Message ID:
00449988
Views:
59
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.
Next
Reply
Map
View

Click here to load this message in the networking platform