August 2003
Intermediate to advanced
1140 pages
68h 45m
English
StructFind
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>