how about structDelete(application, listRest(variables.myname, "."),
false) or structDelete(application, "mystruct_"&client.foo, false)?

cheers,
barneyb

On Fri, 13 Aug 2004 11:06:53 -0700, Matt Robertson
<[EMAIL PROTECTED]> wrote:
> This can't be difficult, but I'm not getting it this morning.
>
> I have a dynamically-named application-scope struct.  I can create it
> just fine, and put stuff in it, but when I'm done I can't get the
> structdelete() syntax right.  What am I doing wrong?  Code below.
>
> <cfset client.foo=4>
> <cfset variables.myname="application.mystruct_"&client.foo>
> <cfif not IsDefined ("#variables.myname#")>
>   <cfset "#variables.myname#"=StructNew()>
>   <cfset variables.myTitle=variables.myname&".title">
>   <cfset "#variables.myTitle#"="TITLE">
>   <cfset variables.myTitle=variables.myname&".text">
>   <cfset "#variables.myTitle#"="TEXT">
> </cfif>
> <cfdump var="#application#">
> <cfdump var="#variables#">
> <cfset temp=structdelete("#variables.myname#","True")>
> <cfabort>
>
> --
> --Matt Robertson--
> MSB Designs, Inc.
> mysecretbase.com
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to