Ian,
Given an existing list, can you calculate the next item in a list?
nextItem("ACC") -> "ABC"
nextItem("ACC,ABC") -> "AAC"
nextItem("ACC,ABC,AAC") -> "BAC"
....
If you can make the nextItem() function work, this function should
build out the list.
function buildList(list) {
if (nextItem(list) eq listFirst(list)) return list;
return buildList(listAppend(list, nextItem(list));
}
Once we figure out how the pattern works, I'm sure we can help you
with the nextItem function as well.
Patrick
--
Patrick McElhaney
704.560.9117
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261869
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4