Solved

array exp q pt II

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
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 I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

816 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

12 Experts available now in Live!

Get 1:1 Help Now