?
Solved

array exp q pt II

Posted on 2002-03-21
5
Medium Priority
?
161 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

770 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