Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto Number
Message
From
25/05/2005 08:13:33
 
 
To
25/05/2005 07:21:14
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows NT
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01017435
Message ID:
01017462
Views:
19
>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
Map
View

Click here to load this message in the networking platform