...

View Full Version : Arrays and coldfusion



Y-STU-K
04-19-2003, 08:33 PM
I'm very new to coldfusion and i'm having a problem with it.

I'm currently writing a script for form error checking in Coldfusion 4. Now any errors found are recorded into an array which i will later output as HTML.

Now i can get the data into the array using

<cfset ArrayAppend(errors, "My error message here")>

now my only problem is how to get it out again? i'm using a simple one dimentional array :)

CFMX RULES
04-24-2003, 09:36 PM
I Dont quite know how you want to output it but this is one option

<cfset myList = ArrayToList(errors, ",")>
<!--- output the array as a list --->
<cfoutput>
<P>The contents of the array are as follows:
<P>#myList#
</cfoutput>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum