August 2001
Intermediate to advanced
976 pages
38h 8m
English
StructCount
StructCount(structure)Returns a count for the number of key/value pairs contained in the
specified structure. Here’s an example that returns the number
of name/value pairs contained in the structure
Stock:
<CFSET Stock = StructNew( )> <CFSET Stock.Company = "Allaire"> <CFSET Stock.Ticker = "ALLR"> <CFSET Stock.Exchange = "NASDAQ"> <CFSET Stock.Price = "66.25"> <CFSET Stock.Change = "+0.375"> <CFSET Stock.LastTradeTime = "10:17AM"> <CFSET Stock.LastTradeDate = "05/17/1999"> <CFSET Stock.Volume = "8300"> <CFOUTPUT> There are #StructCount(Stock)# key/value pairs in the structure Stock. </CFOUTPUT>
Read now
Unlock full access