Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
REPLACE question
Message
From
16/12/1998 17:33:14
 
 
To
16/12/1998 13:33:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00168167
Message ID:
00168310
Views:
31
>Why does
>
>REPLACE tablename.fieldname with m.VarName
>
>produce unreliable results unless you first SELECT tablename?
>
>I've come across this before and would like to know what causes it.
>
>TIA

Hi David,
The reason is that the default scope for a REPLACE command is "NEXT 1" in the currently selected alias. So if your current table is EOF() nothing will happen and no error is generated. This is for very good reason when you think about it :-)
In VFP you can now say REPLACE ..... IN myAlias
Previous
Reply
Map
View

Click here to load this message in the networking platform