Structure Functions - MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual

Table of Contents

Advertisement

Structure Functions

<table cellpadding="2" cellspacing="2">
<!--- In cfloop, use item to create a variable
</table>
</cfoutput>

Structure Functions

Use the following functions to create and manage structures in ColdFusion
applications:
Function
IsStruct
StructClear
StructCopy
StructCount
StructDelete
StructFind
StructInsert
StructIsEmpty
StructKeyArray
StructKeyExists
StructKeyList
StructNew
StructUpdate
<tr>
<td><b>Employee</b></td>
<td><b>Department</b></td>
</tr>
called person to hold value of key as loop runs --->
<cfloop collection=#departments# item="person">
<tr>
<td>#person#</td>
<td>#Departments[person]#</td>
</tr>
</cfloop>
Description
Returns True if the specified variable is a structure.
Removes all data from the specified structure.
Returns a new structure with all the keys and values of the
specified structure.
Returns the number of keys in the specified structure.
Removes the specified item from the specified structure.
Returns the value associated with the specified key in the
specified structure.
Inserts the specified key-value pair into the specified
structure.
Indicates whether the specified structure contains data.
Returns True if the structure contains no data, and False if it
does contain data.
Returns an array of keys in the specified structure.
Returns True if the specified key is in the specified structure.
Returns a list of keys in the specified structure.
Returns a new structure.
Updates the specified key with the specified value.
133

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 5

Table of Contents