Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert a record into a local view by grid
Message
De
14/04/2001 13:22:33
 
 
À
14/04/2001 12:22:17
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00495551
Message ID:
00495557
Vues:
11
>I want to know how to code, so that I can insert a record to a grid which rowsource from a local view, to the appropiate line I want? say, the grid have 5 records at first, and when I place my cursor on the third record, I insert a new record in between record 2 and record 3?

Well, if you want the record to physically exist there, use INSERT (not teh SQL one), otherwise, create an "Order" field, and sort your grid on that. Once the new record is added, if you tell it where you want it placed, a refresh() will refresh the sort on the grid and your record will be wher eyou want it.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform