Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution on parameterized view in VFP 8 don't
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00812113
Message ID:
00812761
Views:
44

>Actually, if mycondition variable is not in scope at the time of the view creation, the view is not static. The macro will expand at execution time, so it will act like a parameterized view, i.e.
>
>mycondition = [title = 'ABC']
>use mydbc!myview
>* all recs with title='ABC'
>
>mycondition = [author = 'XYZ']
>requery()
>* all recs with title='ABC'


Way to go Doru! I did not think this through with a quick answer from work. I should've taken the time to think about it. Good thinking! Carlos should be pleased.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform