>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