Home Contact Sitemap Todo Money

Alan K Holden

Accomplished Internaut

Code Snippets

Structures & Arrays

CFML

<cfscript>
myStruct1 = {firstname="Simon", lastname="Whatley", city="London"};
myStruct2 = {firstname="John", lastname="Doe", city="New York"};
myArray = [myStruct1, myStruct2];
</cfscript>
 
Loops

CFML

<cfscript>
for (i=1;i <= ArrayLen(array);i=i+1) {
    WriteOutput(array[i]);
}
</cfscript>
 

Comments

Post a Comment

Required Field

My Details
Subscription Settings

Hear about status updates or new posts.