Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database gets lost
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00236029
Message ID:
00236110
Views:
11
THAT did it. I've called off my suicide watch. The thing is in scanfile, the record pointer is still where the replace should take place, I have never seen this b4.
>
>change this line;
>repl scanfile->noun with 'UNKNOWN'
to
repl noun with 'UNKNOWN' IN Scanfile

>The reason you are getting no replace is that replace is a scoped command. That is its work depends on the records in the currently selected work area. IN your code the currently selected work area is at EOF and so no replace takes place. By using the IN Alais option you overcome this scope and set the scope for the replace command to the work area you are replacing in. It is a good idea to never use an alias on a replace command so you will get errors if you make a mistake and can fix them before they drive you nuts.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Reply
Map
View

Click here to load this message in the networking platform