> use replace to replace "chr(13)" with what ever you like.
> replace("#string#","chr(13)"," ","ALL")
> At 10:22 AM 8/20/2003 -0400, you wrote:
>>hi. does anyone know of a way to identify that a user has
>>entered a hard
>>return into a text-area and then pull those hard returns
>>out (or replace
>>them with just a single space). any help is greatly
>>appreciated. thanks
>>very much.
>>
The syntax should be:
replace(string,chr(13)," ","ALL")
however... not all operating systems use chr(13) as part of
the carriage return, so the best bet is to replace both
chr(13) and chr(10)... I recommend a regular expression:
rereplace(string,"[#chr(13)##chr(10)#]"," ","ALL")
hth
s. isaac dealey 972-490-6624
team macromedia volunteer
http://www.macromedia.com/go/team
chief architect, tapestry cms http://products.turnkey.to
onTap is open source http://www.turnkey.to/ontap
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm