Does String Contain?

2009-03-12 Thread Robert Harrison
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

Re: Does String Contain?

2009-03-12 Thread John M Bliss
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

Re: Does String Contain?

2009-03-12 Thread Peter Boughton
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? :)

Re: Does String Contain?

2009-03-12 Thread Peter Boughton
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

RE: Does String Contain?

2009-03-12 Thread Robert Harrison
[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

Re: Does String Contain?

2009-03-12 Thread John M Bliss
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

Re: Does String Contain?

2009-03-12 Thread Peter Boughton
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