Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dos Fox 2.6 strange replace behavior
Message
 
To
26/06/1998 14:46:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00112031
Message ID:
00112033
Views:
30
Mark,

This is a little strange, but I'll try to explain it. The scope of the REPLACE command applies to the selected workarea. The default scope is NEXT 1 (the current record). If you are at EOF in the current workarea there is no NEXT 1, so the REPLACE doesn't happen. It doesn't matter where the record pointer is in the workarea where you're trying to do the replace.

VFP adds the IN clause to REPLACE so you can REPLACE IN myarea. In 2.x I don't think there's any way around selecting the area where you want to do the replace.


>Does anyone know why a REPLACE done in a workarea other than the one selected does not always work? How do you correct the problem without selecting the target workarea first?
Previous
Reply
Map
View

Click here to load this message in the networking platform