Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert field in table's field list
Message
From
03/10/2003 04:10:46
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00834561
Message ID:
00834675
Views:
26
I'm sure you remembered bubble sort from school.

suppose your field names: aa,bb,cc
your new field : dd
you want to insert dd after bb

alter table mytab add column dd c(10)
alter table mytab add temp i
use mytab
repl temp with cc all
use
alter table mytab drop column cc
alter table mytab add column cc
use mytab
repl cc with temp all
use
alter table mytab drop column temp

I just write that. I didn't try. Maybe some syntax mistakes.
-------------------------
this the basic. You need them for automation that:
-for/next
-fcount()
-field()
-and use bubble sort :)
Previous
Reply
Map
View

Click here to load this message in the networking platform