Concatination operator is & not + A On 29 Apr 2013 18:51, "Jason King" <[email protected]> wrote:
> That's what I'm leaning towards. But I can't get OpenBD to accept the cfc > as I originally wrote it. The way I constructed the string breaks it. > > > On Mon, Apr 29, 2013 at 12:50 PM, Alex Skinner <[email protected]> wrote: > >> I would use an Interim variable I think its more readable but openbd >> doesn't care >> >> A >> On 29 Apr 2013 18:43, "Jason Allen" <[email protected]> wrote: >> >>> Hi Guys, >>> >>> I'm having a brain fart. >>> >>> I have a CFC I'm trying to use. I'm about to just declare a variable >>> prior to using the function, and build the string with that, but now I'm >>> curious. >>> >>> I want to pass a 'string' as an argument via CFC, but the string itself >>> is a combination of several different variables combined with a string. The >>> argument in question is 'description >>> >>> <cfset addEventResults = >>> application.events.addEvent(userID=arguments.userID, title='profile image >>> uploaded', description='//images'+ arguments.imageServer + >>> '/images/profiles/' + arguments.userID + '/' + arguments.folderID + '/' + >>> arguments.image)> >>> >>> 1) Can I even pass an argument this way? >>> 2) Would it just be better to declare a new VAR, build my string with >>> that, and then just use newVar? >>> >>> ie >>> >>> <cfset myNewString = //images'+ arguments.imageServer + >>> '/images/profiles/' + arguments.userID + '/' + arguments.folderID + '/' + >>> arguments.image > (fyi i know not syntax correct) >>> <cfset addEventResults = >>> application.events.addEvent(userID=arguments.userID, title='profile image >>> uploaded', description='myNewString')> >>> >>> Thoughts? >>> >>> -Jason >>> >>> -- >>> -- >>> online documentation: http://openbd.org/manual/ >>> http://groups.google.com/group/openbd?hl=en >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Open BlueDragon" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> -- >> -- >> online documentation: http://openbd.org/manual/ >> http://groups.google.com/group/openbd?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Open BlueDragon" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > -- > online documentation: http://openbd.org/manual/ > http://groups.google.com/group/openbd?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Open BlueDragon" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en --- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
