Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Yasmin_lady #1
copy a part of a list to another list
i store my search result in a list and want to divide that list into 3 or 4 smaller lists
How can i do this
please help..
Yasmin_lady Guest
-
Multi-line TextBox - Paste text with numbered list, bullet list, tab character
Hi All, I need a server control that's exactly like a multi-line TextBox, but also allow users to paste text with numbered list, bullet list, and... -
Need a button to rollover, show list and link from list
Hi, very new to Flash and need some help with a button. I'm creating a title bar for a site and I'm doing something similar to the button on... -
#25625 [NEW]: [chm] bug on ref.ftp.html | ftp_*list cant retrive ftp list on some ftpd
From: sentomas at hotmail dot com Operating system: freebad PHP version: 4.3.3 PHP Bug Type: FTP related Bug description: ... -
copy list until...
On 17 Sep 2003 jimbo@jimbo.com wrote: @oldpresidents = grep { "true" .. $_ eq "Bush" } @presidents; See 'perlop' for the .. operator... -
previous favorites list copy comment
Regarding the comment earlier about copying one's favorites list, thank you for that info I've always wanted. Does someone know how to proceed... -
Yasmin_lady #2
copy a part of a list to another list
i store my search result in a list and want to divide that list into 3 or 4 smaller lists
How can i do this
please help..
Yasmin_lady Guest
-
Yasmin_lady #3
copy a part of a list to another list
i store my search result in a list and want to divide that list into 3 or 4 smaller lists
How can i do this
please help..
Yasmin_lady Guest
-
gumshoe #4
Re: copy a part of a list to another list
divide based on what criteria? Have you looked at the list functions in the
docs?
"Yasmin_lady" <webforumsuser@macromedia.com> wrote in message
news:d042ue$nd2$1@forums.macromedia.com...>i store my search result in a list and want to divide that list into 3 or 4
>smaller lists
> How can i do this
> please help..
>
gumshoe Guest
-
jdeline #5
Re: copy a part of a list to another list
This isn't very elegant, but should get the job done.
<CFSET size1 = ListLen(longList) \ 3>
<CFSET size2 = size1 * 2>
<CFSET list1 = "">
<CFSET list2 = "">
<CFSET list3 = "">
<CFSET count = 1>
<CFLOOP INDEX="i" LIST="#longList#'>
<CFIF count LE size1>
<CFSET list1 = ListAppend(list1, i)>
<CFELSEIF count LE size2>
<CFSET list2 = ListAppend(list2, i)>
<CFELSE>
<CFSET list3 = ListAppend(list3, i)
</CFIF>
</CFLOOP>
jdeline Guest
-
blewis #6
Re: copy a part of a list to another list
I think you will need to provide additional detail about how you want them divided up. Do you want them relatively equal, split after a certain point, what?
blewis Guest
-
Yasmin_lady #7
Re: copy a part of a list to another list
i have 6 search queries i insert the result of these queriesinto a list that list should be puted out , i want to put 10 element per page out how can i that..
thanks alot
Yasmin_lady Guest



Reply With Quote

