Information générale
Catégorie:
Codage, syntaxe et commandes
>I have a simple grid tied to a table and a command button to delete the current record. If I just mark the record as DELETEd, the grid shows the record as marked. However, if I issue a PACK, the grid immediately disappears. It does not matter whether I am removing the record or keeping others.
>
>If I use an ADD button on the screen, a record is added to the table, but the grid will still not redisplay unless I restart the application. Any ideas?
When you PACK the file, the grid loses its RecordSource and thus appears blank. It´s better to use SET DELETED ON, and to try to reuse deleted records for new insertions. (In our framework, before adding a record we look for a deleted one, and we RECALL it; this prevents the table from growing too much.)
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement