Atrix This looks very familiar. I will give this a try. Thanks so much for taking the time to help
Steve -----Original Message----- From: Atrix Wolfe [mailto:[EMAIL PROTECTED] Sent: Sunday, March 09, 2003 11:14 AM To: [EMAIL PROTECTED] Subject: Re: Witango-Talk: wrapping long lists hmm, it sounds like your in need of the modulus operator. Ive never done this so bare with me.. lets say you have some info in local$resultset and you want to only have the table be 20 rows long, the code would look something like this: -----start----- <@assign local$colcount value="<@calc expr='ceil(<@numrows array=local$resultset>/20)'>"> numrows array=local$resultset=<@numrows array=local$resultset><br> local$colcount=@@local$colcount<br> <table border=1> <tr> <@for start=1 stop=@@local$colcount> <td><b>Col <@currow> (<@calc expr="(<@currow>-1)*20">-<@calc expr="<@currow>*20-1">)</b></td> </@for> </tr> <@for start=1 stop=20> <tr> <@assign local$row value="<@currow>"> <@for start=1 stop=@@local$colcount> <@assign local$Index value="<@calc expr='(<@currow>-1)*20+@@local$row'>"> <@if expr="@@local$Index<=<@numrows array=local$resultset>"> <td> @@local$resultset[@@local$Index,1] </td> </@if> </@for> </tr> </@for> </table> -----end----- this code could get slow though with large amounts of results because of the nested for loop, so be careful if you have a big data set (im talkin probly like in the thousands). ----- Original Message ----- From: "steve" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 09, 2003 12:34 PM Subject: RE: Witango-Talk: wrapping long lists > Someone on this list not too long ago, but whilst I was at a different > employer, thus the code is no longer in my possession, gave me some > code on here to wrap long lists after a basic search action. > > I was pulling back lists after doing a search that would require the > user to scroll and scroll and scroll down. The code that someone shared > with me enable the list to hit 20 items then it would wrap back up and > start another column. > > If anyone remember's such a code, I could really benefit from it. > > Thanks for any help on this > > Steve > > > ________________________________________________________________________ > TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] > with unsubscribe witango-talk in the message body > ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body
