Solved

array exp q pt II

Posted on 2002-03-21
5
157 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
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 10 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

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…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.

685 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