User Guide
526 CFML Language Reference
</CFScript>
<CFOUTPUT>
employee is a structure: #IsStruct(employee)#
</CFOUTPUT>
<CFSET rc = StructDelete(employee, "#form.field#", "True")>
<CFOUTPUT>
<P>Did I delete the field "#form.field#"? The code indicates: #rc#
</P>
</CFOUTPUT>
</CFIF>
<CFIF NOT IsDefined("FORM.Delete")>
<FORM ACTION="structdelete.cfm" METHOD="post">
<P>Select the field to be deleted:
<select NAME="field">
<option VALUE="firstname">first name
<option VALUE="lastname">last name
<option VALUE="email">email
<option VALUE="phone">phone
<option VALUE="department">department
</select>
<INPUT TYPE="submit" NAME="Delete" VALUE="Delete">
</FORM>
</CFIF>
</BODY>
</HTML>