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:17:34
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:
01135150
Views:
12
Sam,

The correct way is to use IN clause
lcMyAlias = "MyAlias"
lcMyField = "MyField"
REPLACE (lcMyField) WITH "My Value" IN (lcMyAlias)
>
>without selecting MyAlias....
>
>1) REPLACE MyAlias.MyField WITH "My Value"
>
>
>2a) lcMyAlias = "MyAlias.MyField"
>2b) REPLACE &lcMyAlias. WITH "My Value"
>
>
>The first one works.
>
>The second one (2a, 2b), I'm using macro-substitution, comes back with an error "No table is open in current work area." Why?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform