[thelist] asp coding problem
Jeroen Wijers
info at internetvraagbaak.nl
Wed Apr 6 10:12:59 CDT 2005
> Hi,
> sorry but I did not understand what you are trying to express.
Okay....
iif(Cities.Fields("CityCount") <> 1,"en","")
puts just "en" behind the word in the first part:
Response.Write("<td><B>" & FindVar("CityResultsStart") &
Cities.Fields("CityCount") & _
"</B>regel"
SO IF CityCount <>1
the script will put "en" behind which makes it print: regelen
ALL that is fine... but now we want to put in multiple words, that cannot be
made as a multiple that easy..
for "en" is only put after the last word.. not all words we put in the first
part where it says "<B>regel"
I was just hoping i did not have to learn asp to solve this ;-)
Jeroen
> I guess, however, a loop structure is required. Have you considered using
> a
> for/while loop
> to iterate Cities.Fields collection and concatenate the values you want.
> You can try
> http://www.w3schools.com/vbscript/vbscript_looping.asp
> http://www.w3schools.com/asp/default.asp
> for a starting point.
> HTH,
> Volkan.
>
> On Apr 6, 2005 3:35 PM, Jeroen Wijers <info at internetvraagbaak.nl> wrote:
>>
>> Hi,
>>
>> Well i have an asp baed website in "maintenance" but now i need to change
>> something in the code:
>> Response.Write("<td><B>" & FindVar("CityResultsStart") &
>> Cities.Fields("CityCount") & _
>> "</B>some words, separated by commas" &
>> iif(Cities.Fields("CityCount") <> 1,"en","") & "</td><tr>")
>> Cities.MoveNext()
>>
>> The problem is the iif(........) <>1, "en",""&"</td> puts only the "en"
>> behind the last word ( offcourse ;-) ).
>> But i would like to OR have it put after all the words (some words,
>> separated by commas)
>> OR somehow remove the "en" part en define when CityCount") <> 1,
>> "different
>> words comma separted"
>>
>> I lack the asp knowlegde... i am afraid... has any one a solution?
>>
>> Thank you!
>>
>> Jeroen
>>
>> --
>>
>> * * Please support the community that supports you. * *
>> http://evolt.org/help_support_evolt/
>>
>> For unsubscribe and other options, including the Tip Harvester
>> and archives of thelist go to: http://lists.evolt.org
>> Workers of the Web, evolt !
>>
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
More information about the thelist
mailing list