Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
REPLACE in a SCAN..
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00694072
Message ID:
00694092
Vues:
14
Simon,

I would first try removing the IN clause as the replace needs to occur in the work area being scanned. Also you can reduce the replaces to a single line as I show below.
SELECT *,SPACE(8) as nafseq2 from znaf INTO TABLE datax\znaf2

seq=8950
SCAN
   seq=seq+1
   replace nafseq2 WITH ALLTRIM(nafseq), ;
           nafseq  WITH STR(seq,8)
ENDSCAN
When this is run what is in the nafseq2 field of the table znaf2?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform