Solved

array exp q pt II

Posted on 2002-03-21
5
149 Views
Last Modified: 2013-12-24
yo, again-

got an array- need to expt all vals- methinks i need a loop

cf loop until bscarray.legnth

expt

/cfloop

ya?

<cffile action="READ" file="C:\WINNT\Profiles\duncan\Desktop\BCS_Attend.txt" variable="bsc">
<cfset bscarray = ListToArray(bsc, "#chr(10)##chr(13)#")>
<cfoutput>
<cfloop until bscarray.legnth>
#bscarray# <br>
</cfoutput>
</cfloop>
0
Comment
Question by:owlsey
  • 3
  • 2
5 Comments
 
LVL 19

Expert Comment

by:cheekycj
Comment Utility
<cfoutput>
<cfloop index="i" from="1" to="ArrayLen(bscarray)" step="1">
#bscarray[i]# <br>
</cfloop>
</cfoutput>
0
 

Author Comment

by:owlsey
Comment Utility
hmmmm-

Error Diagnostic Information
Attribute TO in tag CFLOOP has an invalid value

Cannot convert ArrayLen(bscarray) to number.
 
heres full code:

<cffile action="READ" file="C:\WINNT\Profiles\duncan\Desktop\BCS_Attend.txt" variable="bsc">

<cfset bscarray = ListToArray(bsc, "#chr(10)##chr(13)#")>
<cfoutput><cfloop index="i" from="1" to="ArrayLen(bscarray)" step="1">
#bscarray[i]# - yeeeeeeehaaa<br>
</cfloop></cfoutput>
0
 
LVL 19

Accepted Solution

by:
cheekycj earned 10 total points
Comment Utility
sorry.. missed one small bit :-)

<cfset bscarray = ListToArray(bsc, "#chr(10)##chr(13)#")>
<cfoutput><cfloop index="i" from="1" to="#ArrayLen(bscarray)#" step="1">
#bscarray[i]# - yeeeeeeehaaa<br>
</cfloop></cfoutput>
0
 

Author Comment

by:owlsey
Comment Utility
keep on rockin
0
 
LVL 19

Expert Comment

by:cheekycj
Comment Utility
Glad I could help, Thanx for the "A"
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
X-Frame-Options - click-jacking 7 46
Help Fix A 403 error 13 94
ip / url redirect 13 57
Ways to assess https/ssl websites 3 53
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now