Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution on parameterized view in VFP 8 don't
Message
 
To
22/07/2003 07:05:08
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00812113
Message ID:
00813057
Views:
15
Yes, the August 2003 issue of FoxPro Advisor has a good writeup about using macro substitution with views, starting on page 42.

One additional point that they bring out; don't use VFP's View Designer for views that use macro substitution. Even the improved View Designer of VFP 8 does not save the view correctly. You must define the view in code.

To make sure the parameter is out of scope, you can RELEASE it just before creating the view:
RELEASE lcMacro
DROP VIEW Tralala 
CREATE SQL VIEW Tralala AS ...
>The solution is
>
>CREATE SQL VIEW Tralala AS SELECT * FROM somwhere &lcMacro
>
>without the &? thing.
>
>lcMacro must not be in scope in the moment of view declaration. I've changed all my views this moment, it runs perfectly in VFP 8.0 as well as in VFP 7.0
>
Mike C.
-------
I keep trying to find a life of my own, apart from you.
DC Talk/Charlie Peacock, In the Light.
www.risensystems.com/ra/itlbegin.rm
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform