Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete a record in a grid
Message
From
26/09/2001 11:25:00
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00560917
Message ID:
00561011
Views:
26
I tried to remove my relation, delete the record and put it back, but it doesn't seem to work. I only have this problem when i enter 4 records and then delete the last one (4th). I don't have any problems deleting the 3 fisrt records. Here's the code i used to delete in the grid from a command button

Code:
***********************************************
LOCAL liOldSel, lcCodeContract, lcRelationEmployeu, lcRelationContract


SELECT Employeu
lcRelationEmployeu = SET("RELATION")
SET RELATION TO

SELECT Contract
lcRelationContract = SET("RELATION")
SET RELATION TO

DELETE

SELECT Employeu
SET RELATION TO &lcRelationEmployeu

SELECT Contract
SET RELATION TO &lcRelationContract

THIS.PARENT.gridContract.REFRESH()
THIS.PARENT.gridContract.SETFOCUS
*************************************************

Thanks again
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform