Hiya folks, need some help here. I want to print a number in a range in a report. I tried using <cfloop> but that didn't work, what other way is there??
This is what I tried:
But that prints the number: 4481, why??
What I want is "name1" to print 4471 then print the fname, lname and address...then print 4472 then fname, lname and address...all the way to 4480.
What am I doing wrong??
PS:
I also tried
Got the same results.
[sub]
____________________________________
Just Imagine.
[sub]
This is what I tried:
Code:
<cfloop index="name1" from="4471" to="4480">
<cfset name1 = name1>
</cfloop>
...
...
...
<cffile="write" output="#name1##fname##lname##address#">
But that prints the number: 4481, why??
What I want is "name1" to print 4471 then print the fname, lname and address...then print 4472 then fname, lname and address...all the way to 4480.
What am I doing wrong??
PS:
I also tried
Code:
<cfloop index="name1" from="4471" to="4480">
<cfset name1 = name1[COLOR=red]+1[/color]>
</cfloop>
Got the same results.
[sub]
____________________________________
Just Imagine.
[sub]