Re: List,Array Question

2008-12-15 Thread Peter Boughton
> Now I will be manipulating this, converting it into a list, inserting > things in it, and then writing to a csv file. You might as well manipulate it as an array, unless you have a specific need to get it into a list first? Then to get the array to CSV, you can do: aList= '"' & ArrayToList( a

Re: List,Array Question

2008-12-15 Thread Ian Skinner
Damayanti Gupta wrote: > aList = ArrayToList(anArray); > aList = ArrayToLIst(anArray,'|'); \*or whatever delimiter you care to use*\ ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the

Re: List,Array Question

2008-12-15 Thread Justin Scott
Damayanti Gupta wrote: > However, one of my array elements has a comma - like ff,gg. This gets split > into 2 elements, which I don't want. Is there any way around this? You can select a different delimiter for the list to manage it internally, such as: aList = ArrayToList(anArray, chr(255));

RE: list / array problems, scheduling problem

2006-12-04 Thread Munson, Jacob
Can you show us the query that is giving you the incorrect results? I think I understand where you're going with this, but I'm not sure why you're getting the results you are. > -Original Message- > From: mayo [mailto:[EMAIL PROTECTED] > Sent: Sunday, December 03, 2006 9:36 PM > > Inste

RE: List [Array] and Val(troubles) -> HELP!

2000-12-15 Thread Joshua Miller
the Next Generation www.eagletgi.com <http://www.eagletgi.com> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -Original Message- From: David Cummins [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 14, 2000 6:33 PM To: CF-Talk Subject: Re: List [Array] and Val(troubles) -&g

Re: List [Array] and Val(troubles) -> HELP!

2000-12-14 Thread David Cummins
Just out of interest, have you ever output restList? I'm guessing your mid parameters might be wrong, in which case the ">" and "<" might be in the list... David Cummins JoshMEagle wrote: > > I have a dilemma, any help is deeply appreciated. I've been driving myself nuts >trying to figure out

RE: List [Array] and Val(troubles) -> HELP!

2000-12-14 Thread Dan Haley
Have you output restList to see what is in it? In your example - 111,112,207 this is what I would expect to see from your code: repIDStart = 1 repIDEnd = 33 (22 + 11) repIDTotal = 32 restList = 111,112,207", content, 1)# + 10; repIDEnd = #Find("", content, repIDStart)#; repIDTotal = (repIDEnd)-(r

RE: ...list...array

2000-10-02 Thread Reynolds, Adam
Just a clarification lists are just string variables. Everytime you use a list CF has to parse the list variable to locate all the elements of the list. Where possible use arrays (particularly with large sets) as these are significantly faster. Adam

RE: ...list...array

2000-09-29 Thread Gavin Myers
EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: ...list...array - To create a list by hand just use CFSET: - If you have an existing one dimensional array, arr_MyArray[], you could use ArrayToList(): - To carry variables through pages you can use a variety of methods. If you want to pass com

Re: ...list...array

2000-09-29 Thread Jamie Keane
1) Pretty much so. 2) You can pass a list like you would any string. Arrays are a bit trickier. If you need to pass an array, you could use ArrayToList, or for more complex arrays, convert them to a WDDX packet. 3) Since a list is just a structured string, you can do this to initialise an empty

RE: ...list...array

2000-09-29 Thread Gavin Myers
EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: ...list...array - To create a list by hand just use CFSET: - If you have an existing one dimensional array, arr_MyArray[], you could use ArrayToList(): - To carry variables through pages you can use a variety of methods. If you want to pass com

Re: ...list...array

2000-09-29 Thread Jon Tillman
On Fri, 29 Sep 2000, Gavin Myers spake thusly: > okay, i've been getting into lists and arrays but i cant find very much good > reference > > 1: is a list just a 1d array? list are variables, and are created as such: > 2: how do you carry a list/array through pages? Is the only way to do it vi

RE: ...list...array

2000-09-29 Thread Steve Bernard
- To create a list by hand just use CFSET: - If you have an existing one dimensional array, arr_MyArray[], you could use ArrayToList(): - To carry variables through pages you can use a variety of methods. If you want to pass complex structures like arrays and structures you can use APPLICATION

RE: ...list...array

2000-09-29 Thread Simon Horwith
to create a new list, just create a variable. Use the list functions on that variable and make sure you specify whatever delimeter is relevent ("," is usually the default, but you can use anything). A list is really any text, but you could visualize it as a 1d array in terms of it's use. An ent

RE: ...list...array

2000-09-29 Thread Pete Freitag
A list is simply a delimited string. The delimiter is usually a comma. A list really isn't an Object in CF, it's more of a concept. I could say I could then treat myVar as a List if I wanted to, since a list is simply a delimited string. So now I could use all the List functions that CF provi