<cfset myVar1 = "" />
<cfset myVar2 = "" />
<cfset myVar3 = "" />
<cfset counter = 0 />
<cfloop list="#myList#" index="i" delimiters="&">
<cfset counter = 1 />
<cfset variables['myVar' & counter] = listLast(i, '=') />
</cfloop>
the above should work...
On 6/9/05, Aldon <[EMAIL PROTECTED]> wrote:
> Thanks Charlie,
>
> Yes I am trying to extrapolate the values and assing them to my variables.
>
>
>
> -----Original Message-----
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 09, 2005 11:58 AM
> To: CF-Talk
> Subject: Re: cfhttp.filecontent help!
>
>
> treat the string as a list, delimited by "&".
> treat each list item as a 'nested' list delimited by "="
>
> are you just trying to extrapolate "1", "2", and "thats all" and
> assign those values to your own variables?
>
> On 6/9/05, Aldon Moore <[EMAIL PROTECTED]> wrote:
> > I am using cfhttp to retreive data from another server that is returned as
> name/value pairs delimited by "&" eg:
> >
> > a=1&b=2&c=thats all.
> >
> > How do I assign each of these values to its own variable?
> >
> >
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209157
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54