[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

array exp q pt II

Posted on 2002-03-21
5
Medium Priority
?
162 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 19

Expert Comment

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

Author Comment

by:owlsey
ID: 6889561
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 40 total points
ID: 6891050
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
ID: 6921570
keep on rockin
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 6921575
Glad I could help, Thanx for the "A"
0

Featured Post

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

656 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