[thelist] CF query tip

Raymond Camden jedimaster at macromedia.com
Thu Jan 31 13:27:01 CST 2002


>
> Example:  <cfscript>StructClear(foo);</cfscript>  will clear
> all of the
> values in the structure foo and give you the structure back
> with all the
> keys intact.

Eh? It removes the keys as well. Simple test:

<cfset apple = structNew()>
<cfset apple.name = "ray">
<cfdump var="#apple#">

<cfscript>structClear(apple);</cfscript>

<cfdump var="#apple#">

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : jedimaster at macromedia.com
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda




More information about the thelist mailing list