Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution in sql views no longer possible
Message
From
10/01/2005 23:03:16
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00975746
Message ID:
00975932
Views:
42
Hi sergey,

>It still works in VFP9 but you have to code it differently:

>- The variable lcMacrotest has to be defined before view is created
>- The variable lcMacrotest should be precceded by '?' in the view
>
create sql view lvMacrotest as sele * from macrotest where &?lcMacrotest
I don't understand why this is this way.
- In VFP7 both strategies work (&cWhere and &?cWhere)
- In VFP8 only &cWhere works
- In VFP9 only &?cWhere weems to work

I'd say this is a bug in an attempt to fix something reported in Yet another BUG: Macros in view definition not supported Thread #753139 Message #753139

Walter,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform