Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting records from a grid
Message
De
30/10/2003 06:48:20
 
 
À
30/10/2003 05:17:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00844381
Message ID:
00844448
Vues:
22
This message has been marked as the solution to the initial question of the thread.
Hi Nicholas.

SET DELETED is on but the grid still shows the deleted record.

In order to have the record disappear, you need to move the record pointer in the grid's RecordSource. The code will do it for you:
lcRecordSource = Thisform.MyGrid.RecordSource 
DELETE IN ( lcRecordSource )
SKIP IN ( lcRecordSource )
IF EOF( lcRecordSource )
  SKIP -1 IN ( lcRecordSource )
ENDIF
Thisform.MyGrid.SetFocus()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform