1) copy to new_str stru extended
2) modi stru ... add field "new_order" N(3)
3) brow ...fill appropriate new_order
4) index on new_order tag new_order
5) crea new_file from new_str
6) appe from old_file
Tedbain,
Reordering columns, (if I understand your question) is very simple... (I assume you want to simple rearrange the order in which columns appear when "Browsing" the talbe with BROWSE NORMAL...). Open the table in a work area, exclusively. From the command window enter:
USE <pathtotable>\<tablename> EXCL
Then, from the Top Line menu click:
WINDOW
then select
VIEW
From the "View" window, click the
SETUP <button>
Then, on the screen that comes up, click on the
Modify <button>
There are little buttons on the left side of the window that appear. They have no "Label", but are just square, gray buttons. If you click on one, you will see an "Up and Down" arrow. (It points both Up or Down). You can then, "Drag" the field (aka Column) name up or down in the list. When you release the button, that is where the column will "Stay". Just move them around until you have the columns in the order you want. When you then Browse the table (in particular with the BROWSE NORMAL command), they will be in the new order you have placed them in.
Scott .. thanks for your effort but that was where I started from and it gets very laborious with 100 cols.
Tesar .. tried what you said. Just what I wanted except I think you dropped a line. I found that the recreation ignored indexing but having been given the right pointers by you, I used select from new_str into new_str2 and took it from there.
Sorry, it was newer tested.
Although max columns is 255, most of my tables has
max 20 fields, to appropriate fill one screen.
For reordering i use only MODI STRU...
Tesar
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.