• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

StructDelete

Synopsis

                     StructDelete(structure, key [, indicatenotexisting])

Deletes key (and its value) from structure. Returns true regardless of success or failure unless the optional indicatenotexisting parameter is set to true. The following example deletes several keys from a structure named Employee:

<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 StructDelete(Employee, "Email")>
<cfset StructDelete(Employee, "PhoneExt")>
   
<cfdump var="#Employee#">


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint