Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reorder columns in a table programatically?
Message
 
À
17/12/2001 10:06:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00595089
Message ID:
00598673
Vues:
14
>Does anyone know how to reorder columns in a table programatically?

Help, regarding SET FIELD, showed a way to reorder the "browse" view of a dbf.
SET FIELDS GLOBAL
SET FIELDS TO a, b, c
browse
SET FIELDS TO
SET FIELDS TO b, c, a

..etc.

It may work to artificially re-order cols for a grid (did't check). Even substituting calculated fields yielded the natural order field name when checked with "? FIELD(n)". Changing FIELD(n's) name is the trick. For now, appending to a "different" structure seems the only show around.
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform