Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-19-2003, 07:33 PM   PM User | #1
Y-STU-K
New Coder

 
Join Date: Sep 2002
Location: UK
Posts: 65
Thanks: 1
Thanked 0 Times in 0 Posts
Y-STU-K is an unknown quantity at this point
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
Y-STU-K is offline   Reply With Quote
Old 04-24-2003, 08:36 PM   PM User | #2
CFMX RULES
New Coder

 
Join Date: Apr 2003
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
CFMX RULES is an unknown quantity at this point
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>
CFMX RULES is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:15 AM.


Advertisement
Log in to turn off these ads.