Will your query recordset, the one you're building the list from, ever go *over* 10 positions?
First off, I'd build the initial list using ValueList() instead of looping on the query and doing ListAppend() - one line instead of three. Afterwards - just do a loop from 1 to 10 minus ListLen(yourlist), and *then* do a ListAppend() on your list, adding a space as a list value. That, or do a loop using "condition", setting it as ListLen(yourlist) < 10. It should keep looping, adding a new entry on the end, 'til your list hits 10 spots, and then break out of the loop. At 06:06 PM 8/25/2003 -0400, you wrote: >I'm building a list looping through a query using ListAppend. > >However, although there may be only a few results returned and appended to >the list, I need the list to ALWAYS have a certain number of positions - >even if X number of them are empty.. > >So, say only 3 results are returned - but I need to list to ALWAYS have 10 >positions: > >myLIST = result1|result2|result3||||||| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com

