Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto Number
Message
De
25/05/2005 08:13:33
 
 
À
25/05/2005 07:21:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows NT
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
01017435
Message ID:
01017462
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform