> 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
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
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));
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
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
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
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
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
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
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
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
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
- 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
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
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
15 matches
Mail list logo