Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete record in grid (relational table)
Message
De
13/01/2007 09:50:29
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01185356
Message ID:
01185359
Vues:
11
>Hello,
>
>I have two tables. (relation -invoice and lines.)
>
>When i want to delete record in grid, if i use theese codes;
>
>&&button click event
>delete in mytable
>skip -1 in mytabe
>thisform.mygrid.setfocus
>thisform.refresh
>
>It's ok. was deleting the record but i do not want to skip -1 ? Have another clear method?

By the way, one simple way to delete the related child records is to use referential integrity. Just use a cascading delete - when you delete the parent, the children will be deleted automatically.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform