Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange replace behaviour.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00694343
Message ID:
00694449
Views:
14
>jeez...worked for years ith replace, and first time i encouters this. but what's in a name : for me it stays a bug, wether it's known or not.
>
>
>thanks.

Vincent,

It is NOT a bug. REPLACE is a scoped command and its default scope is NEXT 1 record IN THE CURRENT WORK AREA. If there is no next 1 record in the current work area then there is nothing for replace to do. You can deal with this by;

1) Selecting the owrk area you are replaceing in before you replace
2) Use the IN clause to point the replace to a different work area REPLACE ... IN OtherArea
3) Use INSERT or UPDATE commands instead of replace
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform