StructNew() - create a structure
StructNew.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>StructNew function example: how to create a structure</title>
</head>
<body>
<h2 style="color:HotPink">StructNew Function Example</h2>
<cfset Employee=StructNew()>
<cfset Employee.FirstName="Jenny">
<cfset Employee.LastName="Jones">
<cfdump var="#Employee#" label="Employee">
</body>
</html>
- IsStruct() - check whether a variable is a structure
- StructCount() - count the keys in a structure
- StructDelete() - remove an element from a structure
- StructIsEmpty() - determine whether a structure contains data
- StructKeyArray() - get an array of keys from a structure
- StructKeyExists() - check whether a specific key is present in a structure
- StructKeyList() - get a list of keys from a structure
- StructUpdate() - update a structure key with a value
- cfdump - dump a structure