Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reorder columns in a table programatically?
Message
 
To
17/12/2001 10:06:46
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00595089
Message ID:
00598673
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform