Re: UDF question -- make num a string
outNum = finalResult & '%' & is the concatenation operator in CF (yeah, i know...it can be annoying) :) charlie - Original Message - From: "Owens, Howard" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, January 17, 2003 5:29 PM Subject: UDF question -- make num a string > I'm trying to do a little UDF to convert something like .77809 to 78% > > If I do something like: > > outNum=finalResult + '%'; > > I get an error that says "cannot convert % to a number" ... > > well, I don't want it to be a num. I want it to be a string. I can't find a > way to get a string output in the return. > > H. > > ~~ > Howard Owens > Internet Operations Coordinator > InsideVC.com/Ventura County Star > [EMAIL PROTECTED] > AIM: GoCatGo1956 > ~~ > > ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: UDF question -- make num a string
try : outNum=finalResult & '%'; Marius Milosav www.scorpiosoft.com It's not about technology, it's about people. Virtual Company (VICO) Application Demo www.scorpiosoft.com/vicodemo/login.cfm - Original Message - From: "Owens, Howard" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, January 17, 2003 7:29 PM Subject: UDF question -- make num a string > I'm trying to do a little UDF to convert something like .77809 to 78% > > If I do something like: > > outNum=finalResult + '%'; > > I get an error that says "cannot convert % to a number" ... > > well, I don't want it to be a num. I want it to be a string. I can't find a > way to get a string output in the return. > > H. > > ~~ > Howard Owens > Internet Operations Coordinator > InsideVC.com/Ventura County Star > [EMAIL PROTECTED] > AIM: GoCatGo1956 > ~~ > > ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: UDF question -- make num a string
When you use the +, tried to add it, replace the + with & and you will be ok: outNum=finalResult & '%'; Used to get me all the time, still once in a while, lol Robert Bailey [EMAIL PROTECTED] "Famous for nothing!" http://www.tinetics.com -Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 4:29 PM To: CF-Talk Subject: UDF question -- make num a string I'm trying to do a little UDF to convert something like .77809 to 78% If I do something like: outNum=finalResult + '%'; I get an error that says "cannot convert % to a number" ... well, I don't want it to be a num. I want it to be a string. I can't find a way to get a string output in the return. H. ~~ Howard Owens Internet Operations Coordinator InsideVC.com/Ventura County Star [EMAIL PROTECTED] AIM: GoCatGo1956 ~~ ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: UDF question -- make num a string
outNum = finalResult & '%'; Robert Bailey [EMAIL PROTECTED] "Famous for nothing!" http://www.tinetics.com -Original Message- From: Owens, Howard [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 4:29 PM To: CF-Talk Subject: UDF question -- make num a string I'm trying to do a little UDF to convert something like .77809 to 78% If I do something like: outNum=finalResult + '%'; I get an error that says "cannot convert % to a number" ... well, I don't want it to be a num. I want it to be a string. I can't find a way to get a string output in the return. H. ~~ Howard Owens Internet Operations Coordinator InsideVC.com/Ventura County Star [EMAIL PROTECTED] AIM: GoCatGo1956 ~~ ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4