Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why not deleting?
Message
From
11/10/1999 11:00:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Why not deleting?
Miscellaneous
Thread ID:
00274937
Message ID:
00274937
Views:
62
I'm trying to delete all my child records associated with my
parent record. In my grid I select a record then hit my delete command button. Here is my code:



Select gisum (parent)
csessionkey=gisum.sessionkey
dele
replace lc_action with "D"

select gidetail (child)
currec= recno()
locate for gidetail.sessionkey = csessionkey
do while found()
go currec
dele all for gidetail.sessionkey = csessionkey
replace all gidetail.lc_action with "D"

thisform.refresh()

It delete my parent record but not my child record, it finds
the same sessionkey in my child but doesn't delete.

I have this code in other forms and works fine.

Any input as to why my child records won't delete would be appreciated.

Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform