RE: [cfaussie] Creating A String With ## values in coldfusion
Because your using + instead of Regards Dale Fraser From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of rai...@ozemail.com.au Sent: Monday, 2 March 2015 11:44 AM To: cfaussie@googlegroups.com Subject: RE: [cfaussie] Creating A String With ## values in coldfusion cfset delim = chr(35) / cfset mycommand= delim + 'reboot' + delim + delim + url.imei + delim + '1212' Generates the error The value # cannot be converted to a number. The error occurred in C:/home/svr.trackingcentral.com.au/wwwroot/mobile_apps/test.cfm: line 11 9 : body 10 : cfset delim = chr(35) / 11 : cfset mycommand= delim + 'reboot' + delim + delim + url.imei + delim + '1212' 12 : 13 : cfoutput#mycommand#/cfoutput NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 From: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Barry Beattie Sent: Monday, 2 March 2015 10:11 AM To: cfaussie Subject: Re: [cfaussie] Creating A String With ## values in coldfusion personally, I'd much prefer setting the # as a variable from the chr(x) function over replacing one string with another. Easily missed and there are ~ popping up unexpectedly... my 2c (from memory, YMMV) cfset delim = chr(35) / /** # as delim **/ cfset mycommand= delim + reboot + delim + delim + url.id http://url.id + delim + 1212 On Mon, Mar 2, 2015 at 9:53 AM, Blair McKenzie shi...@gmail.com mailto:shi...@gmail.com wrote: Another alternative - create the output with a substitute delimiter, like ~, and then use replace to change them to hashes. Blair On Mon, Mar 2, 2015 at 10:41 AM, Dale Fraser d...@fraser.id.au mailto:d...@fraser.id.au wrote: I would break it apart cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23 ” To cfset mycommand = “##reboot##” url.id http://url.id “##1212##” / Regards Dale Fraser From: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com ] On Behalf Of Jack Traynor Sent: Monday, 2 March 2015 8:54 AM To: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com Subject: Re: [cfaussie] Creating A String With ## values in coldfusion I copy + pasted the code from your email into a CF10 test page and added /?id=100 to the URL and it worked as you expected it to. Do you have an example of an ID? What error are you getting? Regards, Jack On Mon, Mar 2, 2015 at 2:22 AM, M@ Bourke m.electronic.at.sym...@gmail.com mailto:m.electronic.at.sym...@gmail.com wrote: how about something like cfset mycommand=”##reboot##+ http://url.id/#%23%231212%23%23 url.id +##1212##” On Sun, Mar 1, 2015 at 3:16 PM, rai...@ozemail.com.au mailto:rai...@ozemail.com.au wrote: Hi This has been causing me grief so some assistance would be appreciated I need to be able to create a ColdFusion variable that contains the following text “#reboot#45454#1212#” The values of “#reboot#” and “#1212#” are constant however the value of 45454 is dynamically generated from the url parameter passed to the page So the actual CF code should look something like: cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23 ” So that the ## output a single # No matter what I try I cannot get it to work, even tried using a evaluate(url.id http://url.id ) but that gave no joy either NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit
RE: SPAM-LOW: RE: [cfaussie] Creating A String With ## values in coldfusion
I think it should be and not +. From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of rai...@ozemail.com.au Sent: Monday, 2 March 2015 10:44 AM To: cfaussie@googlegroups.com Subject: SPAM-LOW: RE: [cfaussie] Creating A String With ## values in coldfusion cfset delim = chr(35) / cfset mycommand= delim + 'reboot' + delim + delim + url.imei + delim + '1212' Generates the error The value # cannot be converted to a number. The error occurred in C:/home/svr.trackingcentral.com.au/wwwroot/mobile_apps/test.cfm: line 11 9 : body 10 : cfset delim = chr(35) / 11 : cfset mycommand= delim + 'reboot' + delim + delim + url.imei + delim + '1212' 12 : 13 : cfoutput#mycommand#/cfoutput NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 From: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Barry Beattie Sent: Monday, 2 March 2015 10:11 AM To: cfaussie Subject: Re: [cfaussie] Creating A String With ## values in coldfusion personally, I'd much prefer setting the # as a variable from the chr(x) function over replacing one string with another. Easily missed and there are ~ popping up unexpectedly... my 2c (from memory, YMMV) cfset delim = chr(35) / /** # as delim **/ cfset mycommand= delim + reboot + delim + delim + url.id http://url.id + delim + 1212 On Mon, Mar 2, 2015 at 9:53 AM, Blair McKenzie shi...@gmail.com mailto:shi...@gmail.com wrote: Another alternative - create the output with a substitute delimiter, like ~, and then use replace to change them to hashes. Blair On Mon, Mar 2, 2015 at 10:41 AM, Dale Fraser d...@fraser.id.au mailto:d...@fraser.id.au wrote: I would break it apart cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23 ” To cfset mycommand = “##reboot##” url.id http://url.id “##1212##” / Regards Dale Fraser From: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com ] On Behalf Of Jack Traynor Sent: Monday, 2 March 2015 8:54 AM To: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com Subject: Re: [cfaussie] Creating A String With ## values in coldfusion I copy + pasted the code from your email into a CF10 test page and added /?id=100 to the URL and it worked as you expected it to. Do you have an example of an ID? What error are you getting? Regards, Jack On Mon, Mar 2, 2015 at 2:22 AM, M@ Bourke m.electronic.at.sym...@gmail.com mailto:m.electronic.at.sym...@gmail.com wrote: how about something like cfset mycommand=”##reboot##+ http://url.id/#%23%231212%23%23 url.id +##1212##” On Sun, Mar 1, 2015 at 3:16 PM, rai...@ozemail.com.au mailto:rai...@ozemail.com.au wrote: Hi This has been causing me grief so some assistance would be appreciated I need to be able to create a ColdFusion variable that contains the following text “#reboot#45454#1212#” The values of “#reboot#” and “#1212#” are constant however the value of 45454 is dynamically generated from the url parameter passed to the page So the actual CF code should look something like: cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23 ” So that the ## output a single # No matter what I try I cannot get it to work, even tried using a evaluate(url.id http://url.id ) but that gave no joy either NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit
RE: [cfaussie] Creating A String With ## values in coldfusion
I would break it apart cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23 ” To cfset mycommand = “##reboot##” url.id “##1212##” / Regards Dale Fraser From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Jack Traynor Sent: Monday, 2 March 2015 8:54 AM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Creating A String With ## values in coldfusion I copy + pasted the code from your email into a CF10 test page and added /?id=100 to the URL and it worked as you expected it to. Do you have an example of an ID? What error are you getting? Regards, Jack On Mon, Mar 2, 2015 at 2:22 AM, M@ Bourke m.electronic.at.sym...@gmail.com mailto:m.electronic.at.sym...@gmail.com wrote: how about something like cfset mycommand=”##reboot##+ http://url.id/#%23%231212%23%23 url.id +##1212##” On Sun, Mar 1, 2015 at 3:16 PM, rai...@ozemail.com.au mailto:rai...@ozemail.com.au wrote: Hi This has been causing me grief so some assistance would be appreciated I need to be able to create a ColdFusion variable that contains the following text “#reboot#45454#1212#” The values of “#reboot#” and “#1212#” are constant however the value of 45454 is dynamically generated from the url parameter passed to the page So the actual CF code should look something like: cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23 ” So that the ## output a single # No matter what I try I cannot get it to work, even tried using a evaluate(url.id http://url.id ) but that gave no joy either NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout.
Re: [cfaussie] Creating A String With ## values in coldfusion
personally, I'd much prefer setting the # as a variable from the chr(x) function over replacing one string with another. Easily missed and there are ~ popping up unexpectedly... my 2c (from memory, YMMV) cfset delim = chr(35) / /** # as delim **/ cfset mycommand= delim + reboot + delim + delim + url.id + delim + 1212 On Mon, Mar 2, 2015 at 9:53 AM, Blair McKenzie shi...@gmail.com wrote: Another alternative - create the output with a substitute delimiter, like ~, and then use replace to change them to hashes. Blair On Mon, Mar 2, 2015 at 10:41 AM, Dale Fraser d...@fraser.id.au wrote: I would break it apart cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23” To cfset mycommand = “##reboot##” url.id “##1212##” / Regards Dale Fraser *From:* cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] *On Behalf Of *Jack Traynor *Sent:* Monday, 2 March 2015 8:54 AM *To:* cfaussie@googlegroups.com *Subject:* Re: [cfaussie] Creating A String With ## values in coldfusion I copy + pasted the code from your email into a CF10 test page and added /?id=100 to the URL and it worked as you expected it to. Do you have an example of an ID? What error are you getting? Regards, Jack On Mon, Mar 2, 2015 at 2:22 AM, M@ Bourke m.electronic.at.sym...@gmail.com wrote: how about something like cfset mycommand=”##reboot##+ url.id +##1212## http://url.id/#%23%231212%23%23” On Sun, Mar 1, 2015 at 3:16 PM, rai...@ozemail.com.au wrote: Hi This has been causing me grief so some assistance would be appreciated I need to be able to create a ColdFusion variable that contains the following text “#reboot#45454#1212#” The values of “#reboot#” and “#1212#” are constant however the value of 45454 is dynamically generated from the url parameter passed to the page So the actual CF code should look something like: cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23” So that the ## output a single # No matter what I try I cannot get it to work, even tried using a evaluate( url.id) but that gave no joy either NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 [image: TrackingCentral_Logo] -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout.
Re: [cfaussie] Creating A String With ## values in coldfusion
Yeah, I do that for line breaks. Either way, you get rid of the eye-crossing stream of #. Blair On Mon, Mar 2, 2015 at 11:10 AM, Barry Beattie barry.beat...@gmail.com wrote: personally, I'd much prefer setting the # as a variable from the chr(x) function over replacing one string with another. Easily missed and there are ~ popping up unexpectedly... my 2c (from memory, YMMV) cfset delim = chr(35) / /** # as delim **/ cfset mycommand= delim + reboot + delim + delim + url.id + delim + 1212 On Mon, Mar 2, 2015 at 9:53 AM, Blair McKenzie shi...@gmail.com wrote: Another alternative - create the output with a substitute delimiter, like ~, and then use replace to change them to hashes. Blair On Mon, Mar 2, 2015 at 10:41 AM, Dale Fraser d...@fraser.id.au wrote: I would break it apart cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23” To cfset mycommand = “##reboot##” url.id “##1212##” / Regards Dale Fraser *From:* cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] *On Behalf Of *Jack Traynor *Sent:* Monday, 2 March 2015 8:54 AM *To:* cfaussie@googlegroups.com *Subject:* Re: [cfaussie] Creating A String With ## values in coldfusion I copy + pasted the code from your email into a CF10 test page and added /?id=100 to the URL and it worked as you expected it to. Do you have an example of an ID? What error are you getting? Regards, Jack On Mon, Mar 2, 2015 at 2:22 AM, M@ Bourke m.electronic.at.sym...@gmail.com wrote: how about something like cfset mycommand=”##reboot##+ url.id +##1212## http://url.id/#%23%231212%23%23” On Sun, Mar 1, 2015 at 3:16 PM, rai...@ozemail.com.au wrote: Hi This has been causing me grief so some assistance would be appreciated I need to be able to create a ColdFusion variable that contains the following text “#reboot#45454#1212#” The values of “#reboot#” and “#1212#” are constant however the value of 45454 is dynamically generated from the url parameter passed to the page So the actual CF code should look something like: cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23” So that the ## output a single # No matter what I try I cannot get it to work, even tried using a evaluate(url.id) but that gave no joy either NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 [image: TrackingCentral_Logo] -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group
RE: [cfaussie] Creating A String With ## values in coldfusion
cfset delim = chr(35) / cfset mycommand= delim + 'reboot' + delim + delim + url.imei + delim + '1212' Generates the error The value # cannot be converted to a number. The error occurred in C:/home/svr.trackingcentral.com.au/wwwroot/mobile_apps/test.cfm: line 11 9 : body 10 : cfset delim = chr(35) / 11 : cfset mycommand= delim + 'reboot' + delim + delim + url.imei + delim + '1212' 12 : 13 : cfoutput#mycommand#/cfoutput NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Barry Beattie Sent: Monday, 2 March 2015 10:11 AM To: cfaussie Subject: Re: [cfaussie] Creating A String With ## values in coldfusion personally, I'd much prefer setting the # as a variable from the chr(x) function over replacing one string with another. Easily missed and there are ~ popping up unexpectedly... my 2c (from memory, YMMV) cfset delim = chr(35) / /** # as delim **/ cfset mycommand= delim + reboot + delim + delim + url.id http://url.id + delim + 1212 On Mon, Mar 2, 2015 at 9:53 AM, Blair McKenzie shi...@gmail.com mailto:shi...@gmail.com wrote: Another alternative - create the output with a substitute delimiter, like ~, and then use replace to change them to hashes. Blair On Mon, Mar 2, 2015 at 10:41 AM, Dale Fraser d...@fraser.id.au mailto:d...@fraser.id.au wrote: I would break it apart cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23 ” To cfset mycommand = “##reboot##” url.id http://url.id “##1212##” / Regards Dale Fraser From: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com ] On Behalf Of Jack Traynor Sent: Monday, 2 March 2015 8:54 AM To: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com Subject: Re: [cfaussie] Creating A String With ## values in coldfusion I copy + pasted the code from your email into a CF10 test page and added /?id=100 to the URL and it worked as you expected it to. Do you have an example of an ID? What error are you getting? Regards, Jack On Mon, Mar 2, 2015 at 2:22 AM, M@ Bourke m.electronic.at.sym...@gmail.com mailto:m.electronic.at.sym...@gmail.com wrote: how about something like cfset mycommand=”##reboot##+ http://url.id/#%23%231212%23%23 url.id +##1212##” On Sun, Mar 1, 2015 at 3:16 PM, rai...@ozemail.com.au mailto:rai...@ozemail.com.au wrote: Hi This has been causing me grief so some assistance would be appreciated I need to be able to create a ColdFusion variable that contains the following text “#reboot#45454#1212#” The values of “#reboot#” and “#1212#” are constant however the value of 45454 is dynamically generated from the url parameter passed to the page So the actual CF code should look something like: cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23 ” So that the ## output a single # No matter what I try I cannot get it to work, even tried using a evaluate(url.id http://url.id ) but that gave no joy either NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to
RE: [cfaussie] Creating A String With ## values in coldfusion
Hi Barry When I try cfset delim = chr(35) / cfset tempData[command]= delim + 'reboot' + delim + delim + url.imei + delim + '1212' Without the “ at start and end I get an error message cannot sum # With “ at start and end all that is passed is delim Some background the code is in a cfc that my iphone app calls to generate a dynamic value that is passed back to the iphone code and then the iphone code outputs the value in the body of an sms Now the process works perfectly and the sms is created as required for all other command its just now that I am needing to include the # which conflicts with cf that a problem has risen NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Barry Beattie Sent: Monday, 2 March 2015 10:11 AM To: cfaussie Subject: Re: [cfaussie] Creating A String With ## values in coldfusion personally, I'd much prefer setting the # as a variable from the chr(x) function over replacing one string with another. Easily missed and there are ~ popping up unexpectedly... my 2c (from memory, YMMV) cfset delim = chr(35) / /** # as delim **/ cfset mycommand= delim + reboot + delim + delim + url.id http://url.id + delim + 1212 On Mon, Mar 2, 2015 at 9:53 AM, Blair McKenzie shi...@gmail.com mailto:shi...@gmail.com wrote: Another alternative - create the output with a substitute delimiter, like ~, and then use replace to change them to hashes. Blair On Mon, Mar 2, 2015 at 10:41 AM, Dale Fraser d...@fraser.id.au mailto:d...@fraser.id.au wrote: I would break it apart cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23 ” To cfset mycommand = “##reboot##” url.id http://url.id “##1212##” / Regards Dale Fraser From: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com ] On Behalf Of Jack Traynor Sent: Monday, 2 March 2015 8:54 AM To: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com Subject: Re: [cfaussie] Creating A String With ## values in coldfusion I copy + pasted the code from your email into a CF10 test page and added /?id=100 to the URL and it worked as you expected it to. Do you have an example of an ID? What error are you getting? Regards, Jack On Mon, Mar 2, 2015 at 2:22 AM, M@ Bourke m.electronic.at.sym...@gmail.com mailto:m.electronic.at.sym...@gmail.com wrote: how about something like cfset mycommand=”##reboot##+ http://url.id/#%23%231212%23%23 url.id +##1212##” On Sun, Mar 1, 2015 at 3:16 PM, rai...@ozemail.com.au wrote: Hi This has been causing me grief so some assistance would be appreciated I need to be able to create a ColdFusion variable that contains the following text “#reboot#45454#1212#” The values of “#reboot#” and “#1212#” are constant however the value of 45454 is dynamically generated from the url parameter passed to the page So the actual CF code should look something like: cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23 ” So that the ## output a single # No matter what I try I cannot get it to work, even tried using a evaluate(url.id http://url.id ) but that gave no joy either NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to
RE: [cfaussie] Creating A String With ## values in coldfusion
Yes I thought that also Im pretty sure cf string append is don’t use it anymore so could be wrong cfset delim = chr(35) chr(35) / cfset mycommand= delim reboot delim url.id http://url.id delim 1212 delim / Should give you what you want, note 2 #’s in delim Regards Dale Fraser From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Blair McKenzie Sent: Monday, 2 March 2015 11:21 AM To: Unname Subject: Re: [cfaussie] Creating A String With ## values in coldfusion Yeah, I do that for line breaks. Either way, you get rid of the eye-crossing stream of #. Blair On Mon, Mar 2, 2015 at 11:10 AM, Barry Beattie barry.beat...@gmail.com mailto:barry.beat...@gmail.com wrote: personally, I'd much prefer setting the # as a variable from the chr(x) function over replacing one string with another. Easily missed and there are ~ popping up unexpectedly... my 2c (from memory, YMMV) cfset delim = chr(35) / /** # as delim **/ cfset mycommand= delim + reboot + delim + delim + url.id http://url.id + delim + 1212 On Mon, Mar 2, 2015 at 9:53 AM, Blair McKenzie shi...@gmail.com mailto:shi...@gmail.com wrote: Another alternative - create the output with a substitute delimiter, like ~, and then use replace to change them to hashes. Blair On Mon, Mar 2, 2015 at 10:41 AM, Dale Fraser d...@fraser.id.au mailto:d...@fraser.id.au wrote: I would break it apart cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23 ” To cfset mycommand = “##reboot##” url.id http://url.id “##1212##” / Regards Dale Fraser From: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com ] On Behalf Of Jack Traynor Sent: Monday, 2 March 2015 8:54 AM To: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com Subject: Re: [cfaussie] Creating A String With ## values in coldfusion I copy + pasted the code from your email into a CF10 test page and added /?id=100 to the URL and it worked as you expected it to. Do you have an example of an ID? What error are you getting? Regards, Jack On Mon, Mar 2, 2015 at 2:22 AM, M@ Bourke m.electronic.at.sym...@gmail.com mailto:m.electronic.at.sym...@gmail.com wrote: how about something like cfset mycommand=”##reboot##+ http://url.id/#%23%231212%23%23 url.id +##1212##” On Sun, Mar 1, 2015 at 3:16 PM, rai...@ozemail.com.au mailto:rai...@ozemail.com.au wrote: Hi This has been causing me grief so some assistance would be appreciated I need to be able to create a ColdFusion variable that contains the following text “#reboot#45454#1212#” The values of “#reboot#” and “#1212#” are constant however the value of 45454 is dynamically generated from the url parameter passed to the page So the actual CF code should look something like: cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23 ” So that the ## output a single # No matter what I try I cannot get it to work, even tried using a evaluate(url.id http://url.id ) but that gave no joy either NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie
Re: [cfaussie] Creating A String With ## values in coldfusion
Another alternative - create the output with a substitute delimiter, like ~, and then use replace to change them to hashes. Blair On Mon, Mar 2, 2015 at 10:41 AM, Dale Fraser d...@fraser.id.au wrote: I would break it apart cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23” To cfset mycommand = “##reboot##” url.id “##1212##” / Regards Dale Fraser *From:* cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] *On Behalf Of *Jack Traynor *Sent:* Monday, 2 March 2015 8:54 AM *To:* cfaussie@googlegroups.com *Subject:* Re: [cfaussie] Creating A String With ## values in coldfusion I copy + pasted the code from your email into a CF10 test page and added /?id=100 to the URL and it worked as you expected it to. Do you have an example of an ID? What error are you getting? Regards, Jack On Mon, Mar 2, 2015 at 2:22 AM, M@ Bourke m.electronic.at.sym...@gmail.com wrote: how about something like cfset mycommand=”##reboot##+ url.id +##1212## http://url.id/#%23%231212%23%23” On Sun, Mar 1, 2015 at 3:16 PM, rai...@ozemail.com.au wrote: Hi This has been causing me grief so some assistance would be appreciated I need to be able to create a ColdFusion variable that contains the following text “#reboot#45454#1212#” The values of “#reboot#” and “#1212#” are constant however the value of 45454 is dynamically generated from the url parameter passed to the page So the actual CF code should look something like: cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23” So that the ## output a single # No matter what I try I cannot get it to work, even tried using a evaluate( url.id) but that gave no joy either NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 [image: TrackingCentral_Logo] -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout.
Re: [cfaussie] Creating A String With ## values in coldfusion
@Dale yes, thanks for the correction. I'm in the same boat - still respect the CF platform and language, but work in other areas. I haven't cut CF code in over 5 years so some bits are a bit rusty. @Claude: the main point is using the chr(xx) function to then create a re-usable variable containing that string. On Mon, Mar 2, 2015 at 10:53 AM, Dale Fraser d...@fraser.id.au wrote: Because your using + instead of Regards Dale Fraser *From:* cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] *On Behalf Of *rai...@ozemail.com.au *Sent:* Monday, 2 March 2015 11:44 AM *To:* cfaussie@googlegroups.com *Subject:* RE: [cfaussie] Creating A String With ## values in coldfusion cfset delim = chr(35) / cfset mycommand= delim + 'reboot' + delim + delim + url.imei + delim + '1212' Generates the error The value # cannot be converted to a number. The error occurred in *C:/home/svr.trackingcentral.com.au/wwwroot/mobile_apps/test.cfm http://svr.trackingcentral.com.au/wwwroot/mobile_apps/test.cfm: line 11* 9 : body 10 : cfset delim = chr(35) / *11 : cfset mycommand= delim + 'reboot' + delim + delim + url.imei + delim + '1212'* 12 : 13 : cfoutput#mycommand#/cfoutput NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 [image: TrackingCentral_Logo] *From:* cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com cfaussie@googlegroups.com] *On Behalf Of *Barry Beattie *Sent:* Monday, 2 March 2015 10:11 AM *To:* cfaussie *Subject:* Re: [cfaussie] Creating A String With ## values in coldfusion personally, I'd much prefer setting the # as a variable from the chr(x) function over replacing one string with another. Easily missed and there are ~ popping up unexpectedly... my 2c (from memory, YMMV) cfset delim = chr(35) / /** # as delim **/ cfset mycommand= delim + reboot + delim + delim + url.id + delim + 1212 On Mon, Mar 2, 2015 at 9:53 AM, Blair McKenzie shi...@gmail.com wrote: Another alternative - create the output with a substitute delimiter, like ~, and then use replace to change them to hashes. Blair On Mon, Mar 2, 2015 at 10:41 AM, Dale Fraser d...@fraser.id.au wrote: I would break it apart cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23” To cfset mycommand = “##reboot##” url.id “##1212##” / Regards Dale Fraser *From:* cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] *On Behalf Of *Jack Traynor *Sent:* Monday, 2 March 2015 8:54 AM *To:* cfaussie@googlegroups.com *Subject:* Re: [cfaussie] Creating A String With ## values in coldfusion I copy + pasted the code from your email into a CF10 test page and added /?id=100 to the URL and it worked as you expected it to. Do you have an example of an ID? What error are you getting? Regards, Jack On Mon, Mar 2, 2015 at 2:22 AM, M@ Bourke m.electronic.at.sym...@gmail.com wrote: how about something like cfset mycommand=”##reboot##+ url.id +##1212## http://url.id/#%23%231212%23%23” On Sun, Mar 1, 2015 at 3:16 PM, rai...@ozemail.com.au wrote: Hi This has been causing me grief so some assistance would be appreciated I need to be able to create a ColdFusion variable that contains the following text “#reboot#45454#1212#” The values of “#reboot#” and “#1212#” are constant however the value of 45454 is dynamically generated from the url parameter passed to the page So the actual CF code should look something like: cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23” So that the ## output a single # No matter what I try I cannot get it to work, even tried using a evaluate( url.id) but that gave no joy either NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 [image: TrackingCentral_Logo] -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to
RE: [cfaussie] Creating A String With ## values in coldfusion
Thanks Charlie As Always a clear and detailed reply NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Charlie Arehart Sent: Monday, 2 March 2015 11:40 AM To: cfaussie@googlegroups.com Subject: RE: [cfaussie] Creating A String With ## values in coldfusion And Claude, besides confirming Cassie’s observation that you needed to use and not +, I had wondered if Dale’s first answer might have done the trick even more simply. You never seemed to reply to that: cfset mycommand = “##reboot##” url.id “##1212##” / That covers the escaping of the hashes, and the concatenation of the variable (which as many have noted, requires in CFML, not +). And indeed, I just ran the code that way: cfparam name=url.id default=45454 cfset mycommand = ##reboot## url.id ##1212## / (the cfparam simply allows the page to be run even if no querystring is passed initially), and it output: #reboot#45454#1212# And to prove that it worked as a true URL variable, I ran it as this: http://localhost/test.cfm?id=45455 and it output: #reboot#45455#1212# That seems what you want, right? (Of course, you say you want that in the variable, and this gives you that. What you may do with the value next, and how that may go, is another question.) And FWIW, Dale’s second answer also would have worked, though it rather than 2 chr’s only one is needed, to produce that same output as above: cfparam name=url.id default=45454 cfset delim = chr(35) / cfset mycommand= delim reboot delim url.id delim 1212 delim / cfoutput#mycommand#/cfoutput Hope that’s helpful. /charlie From: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Cassie Woolley Sent: Sunday, March 01, 2015 7:51 PM To: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com Subject: RE: SPAM-LOW: RE: [cfaussie] Creating A String With ## values in coldfusion I think it should be and not +. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout.
Re: [cfaussie] Creating A String With ## values in coldfusion
I copy + pasted the code from your email into a CF10 test page and added /?id=100 to the URL and it worked as you expected it to. Do you have an example of an ID? What error are you getting? Regards, Jack On Mon, Mar 2, 2015 at 2:22 AM, M@ Bourke m.electronic.at.sym...@gmail.com wrote: how about something like cfset mycommand=”##reboot##+ url.id +##1212## http://url.id/#%23%231212%23%23” On Sun, Mar 1, 2015 at 3:16 PM, rai...@ozemail.com.au wrote: Hi This has been causing me grief so some assistance would be appreciated I need to be able to create a ColdFusion variable that contains the following text “#reboot#45454#1212#” The values of “#reboot#” and “#1212#” are constant however the value of 45454 is dynamically generated from the url parameter passed to the page So the actual CF code should look something like: cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23” So that the ## output a single # No matter what I try I cannot get it to work, even tried using a evaluate( url.id) but that gave no joy either NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 [image: TrackingCentral_Logo] -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout.
RE: [cfaussie] Creating A String With ## values in coldfusion
And Claude, besides confirming Cassie’s observation that you needed to use and not +, I had wondered if Dale’s first answer might have done the trick even more simply. You never seemed to reply to that: cfset mycommand = “##reboot##” url.id “##1212##” / That covers the escaping of the hashes, and the concatenation of the variable (which as many have noted, requires in CFML, not +). And indeed, I just ran the code that way: cfparam name=url.id default=45454 cfset mycommand = ##reboot## url.id ##1212## / (the cfparam simply allows the page to be run even if no querystring is passed initially), and it output: #reboot#45454#1212# And to prove that it worked as a true URL variable, I ran it as this: http://localhost/test.cfm?id=45455 and it output: #reboot#45455#1212# That seems what you want, right? (Of course, you say you want that in the variable, and this gives you that. What you may do with the value next, and how that may go, is another question.) And FWIW, Dale’s second answer also would have worked, though it rather than 2 chr’s only one is needed, to produce that same output as above: cfparam name=url.id default=45454 cfset delim = chr(35) / cfset mycommand= delim reboot delim url.id delim 1212 delim / cfoutput#mycommand#/cfoutput Hope that’s helpful. /charlie From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Cassie Woolley Sent: Sunday, March 01, 2015 7:51 PM To: cfaussie@googlegroups.com Subject: RE: SPAM-LOW: RE: [cfaussie] Creating A String With ## values in coldfusion I think it should be and not +. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout.
RE: [cfaussie] Creating A String With ## values in coldfusion
Happy to help, and thanks for the kind regards. And we’ll assume you’re all set then. :-) /charlie From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of rai...@ozemail.com.au Sent: Sunday, March 01, 2015 9:17 PM To: cfaussie@googlegroups.com Subject: RE: [cfaussie] Creating A String With ## values in coldfusion Thanks Charlie As Always a clear and detailed reply Regards Claude Raiola -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout.
RE: [cfaussie] Creating A String With ## values in coldfusion
Hi Charlie Yes solved from a CF perspective however as the issue appears to be the user of the # appended to a url within I-Phone App development environment NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Charlie Arehart Sent: Monday, 2 March 2015 1:33 PM To: cfaussie@googlegroups.com Subject: RE: [cfaussie] Creating A String With ## values in coldfusion Happy to help, and thanks for the kind regards. And we’ll assume you’re all set then. :-) /charlie From: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of rai...@ozemail.com.au mailto:rai...@ozemail.com.au Sent: Sunday, March 01, 2015 9:17 PM To: cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com Subject: RE: [cfaussie] Creating A String With ## values in coldfusion Thanks Charlie As Always a clear and detailed reply Regards Claude Raiola -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie+unsubscr...@googlegroups.com . To post to this group, send email to cfaussie@googlegroups.com mailto:cfaussie@googlegroups.com . Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout.
[cfaussie] Creating A String With ## values in coldfusion
Hi This has been causing me grief so some assistance would be appreciated I need to be able to create a ColdFusion variable that contains the following text #reboot#45454#1212# The values of #reboot# and #1212# are constant however the value of 45454 is dynamically generated from the url parameter passed to the page So the actual CF code should look something like: cfset mycommand=##reboot###url.id###1212## So that the ## output a single # No matter what I try I cannot get it to work, even tried using a evaluate(url.id) but that gave no joy either NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout.
Re: [cfaussie] Creating A String With ## values in coldfusion
how about something like cfset mycommand=”##reboot##+ url.id +##1212## http://url.id/#%23%231212%23%23” On Sun, Mar 1, 2015 at 3:16 PM, rai...@ozemail.com.au wrote: Hi This has been causing me grief so some assistance would be appreciated I need to be able to create a ColdFusion variable that contains the following text “#reboot#45454#1212#” The values of “#reboot#” and “#1212#” are constant however the value of 45454 is dynamically generated from the url parameter passed to the page So the actual CF code should look something like: cfset mycommand=”##reboot###url.id###1212## http://url.id#%23%231212%23%23” So that the ## output a single # No matter what I try I cannot get it to work, even tried using a evaluate( url.id) but that gave no joy either NB: TrackingCentral is now a registered product services provider for the National Disability Insurance Scheme, under the category of Assisted Technology Regards Claude Raiola Director TrackingCentral Pty. Ltd Free Call 1300 255 990 [image: TrackingCentral_Logo] -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/d/optout.