Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with selecting fields
Message
De
22/02/2002 15:18:53
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
22/02/2002 15:11:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00623894
Message ID:
00623897
Vues:
7
>Hello all,
>
>I'm using fox6 on this. The current code has:
>set order to lname
>locate for lname=alltrim(name_sel) .and. fname = alltrim(fname_sel)
>
>However, the user would like the results to be abc order by lname then fname. What is the best way to do this?
>
>I thought about:
>index on lname + fname to full_name
>set order to full_name
>but this ended up giving me an msgbox everytime the page was run asking if I would like to overwrite full_name.idx.
>
>Thanks again,
>Sunshine

Sunshine,

You only need to INDEX ON once in your application. After that you can just use SET ORDER to have the list reordered. You will not get the message this way.

Renoir
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform