Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why not deleting?
Message
De
11/10/1999 11:00:33
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Why not deleting?
Divers
Thread ID:
00274937
Message ID:
00274937
Vues:
63
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform