[thelist] asp coding problem

Ken Schaefer Ken at adOpenStatic.com
Wed Apr 6 21:09:25 CDT 2005


Like Volkan, I didn't understand your first post. I still don't understand
what you are trying to do.

Can you post some sample data, and the sample output you are trying to
achieve?

Cheers
Ken

--
www.adOpenStatic.com/cs/blogs/ken/ 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: thelist-bounces at lists.evolt.org [mailto:thelist-
: bounces at lists.evolt.org] On Behalf Of Jeroen Wijers
: Subject: Re: [thelist] asp coding problem
: 
: 
: > 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



More information about the thelist mailing list