Inside Coldfusion MX

"-->

StructFindValue (top, value [, scope])

Description

Searches recursively through a substructure of nested arrays, structures, and other elements for structures with values that match the search key in the value parameter.

Example

<cfscript> Products = StructNew(); StructInsert(Products, "ProductName", "Blizzard Blender"); StructInsert(Products, "ProductID", 1001); StructInsert(Products, "SKU", "555-6582"); </cfscript> <cfoutput> The product name is #StructFindValue(Products, "SKU")#. </cfoutput>

Категории