Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2002
    Thanked 0 Times in 0 Posts

    Arrays and coldfusion

    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

  2. #2
    New Coder
    Join Date
    Apr 2003
    Thanked 0 Times in 0 Posts
    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:


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts