Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and PACK
Message
 
À
20/09/1997 16:33:18
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00050925
Message ID:
00050958
Vues:
28
>Helo all
>
>I'm having a little problem with pack and grids, i have a toolbar where it
>has a buttom to user delete a record, but when the record is packed i cannot
>see the oders records in the grid.
>
>there's any way to solve this
>
>thanks
>Anderson Reis Girardi
>
>Athenas Automação e Sistemas
>ander@net1.com.br
Anderson,

A grid has a recordsource and that is where the grid gets its identity and its rows. When you pack a table you delete the recordsource of the grid and that makes the grid go crazy. You need to set the recordsource of the grid to "", then pack, then reset the recordsource of the grid again. If you have anything set up in the grid's columns those properties also must be reset.

The real solution is to NOT pack, but rahter SET DELETED ON and do the packing as an administrative activity at some later time. PACKing a table will not work in a multiuser environment anyway as it requires exclusive use of the table and that locks all other users out of the table.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform