You can't unset a variable but you can fake it. Lets say you created a
structure and in that structure is a key with a value. That key has the same
effect as a variable and you can 'delete' it.


> What I need/want is the ability to <cfset aVariable = VOID> so that
> subsequent isdefined("aVariable") returns FALSE.
>
> Another way of saying it would be, why isnt there
>
> DeleteVariable("var")
>
> like there is DeleteClientVariable("var")
>
> Or put yet another way, Why can't you
>
> cfset r=StructDelete(Variables, "var")
>
> As far as I can tell, once you use CFSET to create a variable, you
> can't undefine it.
>
> Is this true, or am I missing something?
>
> geoff hoffman
> [EMAIL PROTECTED]
>
>
>
>
>
>
>
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to