Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to re-order the records in cursor ?
Message
 
À
07/01/2001 00:18:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00460297
Message ID:
00460299
Vues:
11
>Hi,
> I have a grid that the recordsource is set to a cursor. And in the form, i will allow to add in new record into the cursor and display in the grid. But i wish to reorder(order by a specific field) the record when i added the record into the cursor.
> Is it got any way to reorder the cursor without reSelect.... into another cursor and set the grid recordsource again ?
>thanks
>
>regard,
>kengwen

You can just index the cursor on the desired field. Note that if you use the table buffering for your cursor you will not be able to index the cursor in this mode, so you have to switch the buffering for your cursor to 3 (row) first, index it and set the buffering mode to 5 again.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform