Tony,
        I think i mentioned this earlier....
        1. Your sessions dont look like they are locked.
        2. when you run into a case of destroying the session variable..
        u will  NOT have any easy way of doing this.. since no structs implemented
        in the session...

        I did the same thing a long time ago and had to re-write the code...u know
        one of those times..
        Example... for just passing form stuff..(frm Struct)
        <cfscript>
        session.sfrm=structNew();
        session.sfrm.val1=1;
        session.sfrm.val1=2;
        // u can also copy the form structure to a session variable..
        // session.frmvalues=duplicate(form);
        </cfscript>
        so when u are done with passing form values you could delete all that
session form
        vals from memory with one line of code.
        <cfscript>
        structDelete(session,"sfrm"); //destroying the structure(sfrm) in the
session scope
        </cfscript>

Joe
-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 11:20 PM
To: CF-Talk
Subject: RE: oddity with variables and cfset


yup, thats what i just came up with too :)
just writing the never mind message!!

thanks anyway...

tony

        <cfif #form["accountft_type_#session.FullReturn[i].id#"]#>
                <cfset returnResults.account_type =
#form["accountft_type_#session.FullReturn[i].id#"]#>
        <cfelseif #form["accountat_type_#session.FullReturn[i].id#"]#>
                <cfset returnResults.account_type =
#form["accountat_type_#session.FullReturn[i].id#"]#>
        <cfelse>
                <cfset returnResults.account_type = 0>
        </cfif>

-----Original Message-----
From: Matthew Walker [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 11:16 PM
To: CF-Talk
Subject: RE: oddity with variables and cfset


You can't use cf tags in an expression. You could use Iif(). But most
people would simply write

<cfif form["accountft_type_#session.FullReturn[i].id#"]>
        <cfset returnResults.account_type =
form["accountft_type_#session.FullReturn[i].id#"]>
<cfelseif form["accountat_type_#session.FullReturn[i].id#"]>
        <cfset returnResults.account_type =
form["accountat_type_#session.FullReturn[i].id#"]>
</cfif>


> -----Original Message-----
> From: Tony Weeg [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 10 September 2002 3:08 p.m.
> To: CF-Talk
> Subject: oddity with variables and cfset
>
>
> i know this value is a number 0-9
> and for the life of me i cannot figger
> out why in the heck this won't work?
>
> HELP :)
>
> <cfset returnResults.account_type =
>
>       <cfif #form["accountft_type_#session.FullReturn[i].id#"]#>
>               #form["accountft_type_#session.FullReturn[i].id#"]#
>       <cfelseif #form["accountat_type_#session.FullReturn[i].id#"]#>
>               #form["accountat_type_#session.FullReturn[i].id#"]#
>       </cfif>
>
> >
>
> ...tony
>
> tony weeg
> [EMAIL PROTECTED]
> www.revolutionwebdesign.com
> rEvOlUtIoN wEb DeSiGn
> 410.334.6331
>
>


______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to