|
| |
|
|
Mvu
Posts: 108 From: Brussels Belgium Status: offline
|
What's wrong with the code - 9/29/2001 20:34:00
Hi,Could someone tell me what's wrong with the following code? <% IF FP_FieldVal(fp_rs,"DESCRIPTION FR") = "Aucune information communiquée" then Response.Write "<%FP_FieldVal(fp_rs,"DESCRIPTION NL")%>" else Response.Write ""<%FP_FieldVal(fp_rs,"DESCRIPTION FR")%>"%> What I try to do is return the value of DESCRIPTION NL if the value of DESCRIPTION FR = "Aucune information communiquée", else return the value of DESCRIPTION FR
------------------ Marc Van Uytvanck Brussels
|
|
|
|
ginnie
Posts: 527 From: St. Louis MO USA Status: offline
|
RE: What's wrong with the code - 9/29/2001 23:54:00
Try this:<% IF FP_FieldVal(fp_rs,"DESCRIPTION FR") = "Aucune information communiquée" then Response.Write FP_FieldVal(fp_rs,"DESCRIPTION NL") else Response.Write FP_FieldVal(fp_rs,"DESCRIPTION FR") %> *Hmmmm ... there should be a line break after "then". Also, you should name your fields using an underscore instead of a space, or you're looking for problems. [This message has been edited by ginnie (edited 09-29-2001).]
|
|
|
|
Mvu
Posts: 108 From: Brussels Belgium Status: offline
|
RE: What's wrong with the code - 9/30/2001 20:46:00
OK , I put the code this way: (with a break after then and else)<% IF FP_FieldVal(fp_rs,"DESCRIPTION_FR") = "Aucune information communiquée" then Response.Write FP_FieldVal(fp_rs,"DESCRIPTION_NL") else Response.Write FP_FieldVal(fp_rs,"DESCRIPTION_FR") %> The change of code is rejected by Frontpage. It says: the content of this page has been changed. Those modifications will be crushed while saving the page. For your information, the code lays inside two webbot components. The first one starting with: <!--webbot bot="DatabaseResultColumn" startspan s-columnnames="blabla..." --!> The next one !--webbot bot="DatabaseRegionEnd" i-CheckSum="65064" endspan --> What shoul I do now ? ------------------ Marc Van Uytvanck Brussels
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|