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

Name

StructUpdate

Synopsis

                    StructUpdate(structure, key, value)

Updates the specified key in structure by overwriting the existing data with value. The following example uses this function to update a key/value in a structure:

<cfset Employee=StructNew( )>
<cfset Employee.Name="Pere">
<cfset Employee.Title="President">
<cfset Employee.Department="Executive Management">
<cfset Employee.Email="pmoney@example.com">
<cfset Employee.PhoneExt="1234">
   
<cfset StructUpdate(Employee, "Name", "Pere Money")>
   
<cfdump var="#Employee#">


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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