How to create a structure in ColdFusion

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>





More ColdFusion examples