August 2001
Intermediate to advanced
976 pages
38h 8m
English
StructDelete
StructDelete(structure, key[,indicatenotexisting])
Deletes key (and its value) from
structure. Returns True
regardless of success or failure unless the optional
indicatenotexisting parameter is set to
True. The following example deletes several keys
from a structure named 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"> <CFSET StructDelete(Stock, "lasttradetime")> <CFSET StructDelete(Stock, "lasttradedate")> The following keys are in the structure <B>Stock</B>:<P> <CFOUTPUT>#StructKeyList(Stock)#</CFOUTPUT>
Read now
Unlock full access