Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pack & grid in a form
Message
De
13/04/2002 15:02:53
 
 
À
13/04/2002 14:36:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00644723
Message ID:
00644730
Vues:
13
In a form, I have a grid (record source is Table A), a delete button to delete a record and a label to show the total no. of record (by using reccount())
>I want to use the label to show the most update of no. of record.
>My problem is if I add "pack" after my delete code, it will make my grid become blank.
>If I don't add "pack" to my code, the label will show the no. of record including the deleted record. So what can I do?



Hi Power,

If you want to pack, you can unbind the recordsource, pack, then rebind and you won't loose the grid...
ThisForm.myGrid.RecordSource = ''
** do your delete code and pack **
ThisForm.myGrid.RecordSource = 'tableA'


VFP6 SP5, VFP8 SP1, VFP 9 SP 1 and Win XP SP 3 (unless otherwise specified)


www.wulfsden.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform