>I have this table with almost 2,000 record and, I need to re-orde and assign a sequencial number but I need to know if I can do it with some routine not manually. And after that how I make VFoxPro auto increment.
>
>V/R
>R. De Jesus
use OldTable exclu
select * from Oldtable order by yourorder into cursor 'mytmpcursor' readwrite
replace yourSequentialField with recno() all
* if YourSeqField is a Character use Padr(alltrim(str(recno())),yourfieldleght,'0')
sele 'OldTable'
zap
appe from dbf('myTmpCursor')
* I think the last sentence works, if not create a temporary table instead of a curso in the select
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only