I know there's been a tonne of replies and I have had a quick scan through
them, but isn't it as easy as adding 10 to the index?

Ade

-----Original Message-----
From: Torrent Girl [mailto:[EMAIL PROTECTED]
Sent: 13 June 2006 20:19
To: CF-Newbie
Subject: Looping issue


Hello All.

I am having an issue with looping

Here is my scenerio:

My users tells me how many locations his/her business has.

I loop over that number and display a series of questions for that
location...so if the user enters 2 for the number of locations, I do this:

<cfloop from="1" to="#locationCount#" index="i">...

and display 2 set of questions.



Here is my issue.

The questions that I display are numbered from 1-10. That works well on the
first set, but the second set needs to be numbered from 11-20 and I don't
know how to make the loop jump to the next set of 10 numbers based on how
many locations they choose.

So, if they enter 3 locations I need 1-10, 11-20, 21-30

BUT as I have it now, all questions from the three locations are labled
1-10.

I hope this makes sense and please send your suggestions.


tGirl


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1882
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to