Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro substitution in WWC
Message
 
À
17/08/2001 11:23:23
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00545374
Message ID:
00545796
Vues:
7
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform