Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the difference, other than the obvious?
Message
 
 
To
10/07/2006 17:26:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01135147
Message ID:
01135153
Views:
13
Sam,

There's no reason to use it in the first place so what the difference if it works or not? :)
The following would work as long as the table in the current work area is not at EOF. The REPLACE..IN doesn't have such problem.
lcMyAlias = "MyAlias.MyField"
REPLACE (lcMyAlias) WITH "My Value"
>
>As always you have the solution. But I was looking for a reason why the second one doesn't work.
>

>>
>>The correct way is to use IN clause
>>lcMyAlias = "MyAlias"
>>lcMyField = "MyField"
>>REPLACE (lcMyField) WITH "My Value" IN (lcMyAlias)
>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform