Hello cf-talk,
You guys are good! A couple more questions.
1. Any good books to better explain usage of these functions? The
help that comes with CFstudio is not very detailed.
2. I got it working fine, and it did what I was looking for, but now
I'd like to be able to get the text to wrap. I end up with this text
that is quite wide before it turns a new line. I've been trying some
of the other functions, but with no help.
I think what I'll need to do is add some <br> in there. Replace
something with a <br>
Does this sound right??
This is what I'm using so far.
#ReplaceList(cfhttp.fileContent,"UPDATED
ANDROSCOGGIN-INTERIOR WALDO-KENNEBEC-NORTHERN CARROLL-SOUTHERN
CARROLL-SOUTHERN FRANKLIN-SOUTHERN GRAFTON-SOUTHERN OXFORD-SOUTHERN
SOMERSET-
INCLUDING THE CITIES OF...AUGUSTA...CONWAY...FARMINGTON...LEBANON...
LEWISTON...OSSIPEE...RUMFORD...SKOWHEGAN...UNITY", "<BR>") #
BL> Actually that's not true.
BL> If the first list is longer than the second list then any extra entries
BL> in
BL> the first list will be removed from [string].
BL> Example:
BL> <cfset temp = replaceList("abcdefghi","a,b,c","x,y")>
BL> x replaces a
BL> y replaces b
BL> c is deleted
BL> end result will be xydefghi
BL> If the second list is longer then any extra entries will be ignored.
BL> Also, don't forget that replaceList() is case sensitive!
BL> +-----------------------------------------------+
BL> Bryan Love
BL> Macromedia Certified Professional
BL> Internet Application Developer
BL> Database Analyst
BL> Telecommunication Systems
BL> [EMAIL PROTECTED]
BL> +-----------------------------------------------+
BL> "...'If there must be trouble, let it be in my day, that my child may
BL> have
BL> peace'..."
BL> - Thomas Paine, The American Crisis
BL> -----Original Message-----
BL> From: Jim McAtee [mailto:[EMAIL PROTECTED]]
BL> Sent: Friday, January 25, 2002 6:07 PM
BL> To: CF-Talk
BL> Subject: Re: replace list????
BL> Three things. You forgot to place the first list (the second function
BL> argument) within quotes. Secondly, with ReplaceList(), both the second
BL> and
BL> third arguments need to be lists with the same number of items. If you
BL> want
BL> to replace 12 different strings with the same thing, then you need to
BL> repeat
BL> it 12 times in the replacement list. Third, the function takes only
BL> three
BL> arguments; there's no scope as an optional fourth argument. Get rid of
BL> the
BL> "all". Adn be sure to remove that space before the ending #.
BL> Jim
BL> ----- Original Message -----
BL> From: "Jeff Fongemie" <[EMAIL PROTECTED]>
BL> To: "CF-Talk" <[EMAIL PROTECTED]>
BL> Sent: Friday, January 25, 2002 6:55 PM
BL> Subject: replace list????
>> Friday, January 25, 2002, 8:53:10 PM
>> Hello CF-Talk,
>>
>> I'm attempting to use a replace function with cfhttp. The page I'm> getting is
>:<cfhttp url=
BL> "http://met-www.cit.cornell.edu/cgi-bin/fcst?NH004"
>>
>> method = "get">
>>
>>
>> And I'm trying to remove a bunch of the top stuff using:
>>
>> <cfoutput>
>>
BL> #ReplaceList(cfhttp.fileContent,androscoggin-interior,waldo-kennebec-nor
BL> ther
BL> n,carroll-southern,carroll-southern,franklin-southern,
>>
BL> grafton-southern,oxford-southern,somerset,-including,the,cities,of,augus
BL> ta,c
BL> onway,farmington,lebanon,lewiston,ossipee,rumford,skowhegan,unity,
BL> "<BR>",
BL> "All") #
>> </cfoutput>
>>
>> But, I keep getting an error! does not know what to do with
>> androscoggin?
>>
>> Can anyone see a mistake with my replace list??
>>
>>
>> Best regards,
>> Jeff Fongemie mailto:[EMAIL PROTECTED]
BL>
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists