Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change record order permanently
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01192768
Message ID:
01192838
Vues:
15
I think what Tariq is saying is that if he X2-clicks on the table, in Explorer, then it will fire off as an incidence of VFP, with the table automatically "sorted" in the desired order. i.e. no user intervention. Thus the table needs to be in the required order natively.

However, he's been shown the (probably ONLY) method of achieving this, given the brains that have pondered the problem, and doesn't seem to want to accept reality.


>To do this you are going to copy to a new table. After copying to a new table you can delete the original and rename the new table to the original name.
>
>There are various ways to copy to a new table with a specific sorted order..
>
>1. Select * from (originaltablename) into table (newtablename) order by (sort expression)
>
>2. Open the original table. Create or set index to appropriate order. Scan the table and copy records one-by-one to the new table.
>
>3. use the SORT command.
>
>Once this is done, the records in the new table will only be sorted properly until a new record is added.
>
>you are much better off and more flexible using a structural index and setting the index tag when opening the table. This will ensure the index order is updated when records are added/deleted/modified.
>
>>There is nothing more to that, the physical sort would not change.
>>
>>Yes, how to sort physical sort according to given index?
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform