Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution in WWC
Message
 
To
17/08/2001 11:23:23
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00545374
Message ID:
00545796
Views:
11
>I have found that a macro substitution in a WWC template doesn't work.
>
>I have a condition like this:
>
>
>< %=IIF(&gcCondition,...)>
>
>
>How can I achieve that?

First off what's the value of gcCondition?

Second, remember the whole thing is a string, so you can string concat everything...

Macro evals don't work because the expression that you have there is already being evaluated. Macros don't work in Evaluates()... Actually it might but it will only do string replacement in which case an eval will do and that would work.

My guess gcCondition is invalid and not evaling to the right value. Two levels of indirection is really not a good idea - there's almost always a better way to handle this like pre-evaluating that expression in your code...
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform