August 2003
Intermediate to advanced
1140 pages
68h 45m
English
StructClear
StructClear(structure)Removes all data from the specified structure. Here’s an example that removes all data from a structure, then tests to see whether the structure is empty:
<cfset Employee=StructNew( )> <cfset Employee.Name="Pere Money"> <cfset Employee.Title="President"> <cfset Employee.Department="Executive Management"> <cfset Employee.Email="pmoney@example.com"> <cfset Employee.PhoneExt="1234"> <cfset StructClear(Employee)> <h2>Employee Struct</h2> <cfdump var="#Employee#">