View Full Version : Arrays and coldfusion

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 :)

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 --->
<P>The contents of the array are as follows: