Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
REPLACE in a SCAN..
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00694072
Message ID:
00694092
Views:
15
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform