Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
West Wind Connect - Template files
Message
 
To
28/07/2000 13:13:57
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00398246
Message ID:
00398285
Views:
28
Thanks David. You are right... but I think I found the real problem:

If I declare a variable (as <% MyTest=1 %> ) a the top of my WP page and in few lines below on my page I use <%=IIF(1==MyTest,"action1","action2")%>...
In this case I think my variable is lost and the condition is invalid.

If it's true, how can I keep a variable when I need a condition as this case ?

Thanks !!!


>Michel,
>
>Yes, this will work. Anything that VFP can EVALUATE and return a string can be put inside the < % = and % >
>
>You might want to read carefully these two parts of the WC docs:
>
>1) Step 6 of the Step-By-Step Guide
>2) What's the difference between a template and a script? (in Knowledge Base Topics)
>
>>With WWC with Template file (.wp), is it possible to use this syntax ? I need a condition and I using IIF statement.
>>
>>< INPUT TYPE="text" NAME="TEST" VALUE="< %=IIF("Mod"==lsAction,ALLTRIM(cPresentUser.UserCode),"")% >" >
>>
>>Regards!!!
Analystik Team
1430 Belanger
Montreal (Quebec)
Canada
(514) 278-2727
analyste@analystik.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform