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

Name

StructFind

Synopsis

                    StructFind(structure, key)

Searches structure and returns the value for the specified key. Here’s an example that searches the structure Employee for various keys:

<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">
   
<cfoutput>
Find the value of the key <b>Name</b>: #StructFind(Employee, "Name")#<br>
Find the value of the key <b>Email</b>: #StructFind(Employee, "Email")#<br>
</cfoutput>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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