Re: Does String Contain?
cfif Find(?, curlink) cfset thisDelim = cfelse cfset thisDelim = ? /cfif cfset newlink = ListAppend(curlink, mynewvars, thisDelim) On Thu, Mar 12, 2009 at 8:52 AM, Robert Harrison rob...@austin-williams.com wrote: I want to know if a string contains a ? or not. Essentially, the string is a link and I need to append some variables at the end, but the string may or may not already contain variables. If the string does not contain any variables there will be no question mark, so I'll append cfset newlink=#curlink#?mynewvars. If it already has variables I'll need to append cfset newlink=#curlink#mynewvars. So how do I tell the string already has variables so I know whether to start a var string or continue the var string? Thanks, Robert Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320438 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Does String Contain?
I should really reply with RTFM and get you to look this up yourself. :P But because I'm feeling generous: cfif find( '?' , CurLink ) cfset Delim = '' / cfelse cfset Delim = '?' / /cfif cfset NewLink = ListAppend( CurLink , MyNewVars , Delim )/ Any questions? :) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320439 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Does String Contain?
Heh, didn't see your answer when I posted. Nice to see we both gave the same solution. :) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320442 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Does String Contain?
Oh Duh. Thanks. I knew that as soon as I saw it, but sometimes your brain overcomplicates something and takes you in the wrong direction. Now that I see this I don't know what the heck I was thinking earlier. Brain freeze. Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Peter Boughton [mailto:bought...@gmail.com] Sent: Thursday, March 12, 2009 11:00 AM To: cf-talk Subject: Re: Does String Contain? I should really reply with RTFM and get you to look this up yourself. :P But because I'm feeling generous: cfif find( '?' , CurLink ) cfset Delim = '' / cfelse cfset Delim = '?' / /cfif cfset NewLink = ListAppend( CurLink , MyNewVars , Delim )/ Any questions? :) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320444 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Does String Contain?
Great minds... :-) On Thu, Mar 12, 2009 at 10:03 AM, Peter Boughton bought...@gmail.comwrote: Heh, didn't see your answer when I posted. Nice to see we both gave the same solution. :) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320445 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Does String Contain?
Now that I see this I don't know what the heck I was thinking earlier. Brain freeze. Yeah, I know that feeling far too well. :( ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320447 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4