Thanks a lot Kym,   I can see the logic in what you're suggesting.
I figured to myself,  'yes as always, Kym shows good sense'.    So I
tried it.

Gave the same infuriating outcome -

the line <cfset string1 = gettemporarydirabs() />  gives the following error:

"E:\Sites\Customers\customername\wwwroot\cms\images\userfiles\Temporary
cannot be converted to a number."

So also does <cfset string1 = "#gettemporarydirabs()#" />   (i thought
perhaps the double quotes might tell CF that it's working with strings
not numbers)

I checked the function gettemporarydirabs() and it's definitely set to
return a string.   Even putting the return value in a tostring()
function still causes the error.

So what puzzles me is how come the CFSET thinks it's always doing arithmetic?

Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month




On Mon, Jun 1, 2009 at 2:54 PM, Kym Kovan <[email protected]> wrote:
>
> Hi Mike,
>
> Your first option should work if they really are strings, I've done that
> one often enuf myself. Evaluate is just doing the same job and I've
> never seen toString being used lke that before :-)
>
> if
> <cfset temporaryfile = "#gettemporarydirabs()#\#theImage.getName()#" />
>
> does not work try
> putting each function call into their own simple variable and then
> concatenate them.
> <cfset string1 = gettemporarydirabs() />
> <cfset string2 = theImage.getName() />
> <cfset temporaryfile = "#string1#\#string2#" />
>
>
> HTH
> Kym K
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to