Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting records from a grid
Message
De
31/10/2003 05:18:56
 
 
À
30/10/2003 06:48:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00844381
Message ID:
00844856
Vues:
17
Thanks Marcia thats exactly what I wanted.

Nick Mason

>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
Répondre
Fil
Voir

Click here to load this message in the networking platform