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>

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.