Dang. That's also handy. Thanks, Dan!
--Ben
Dan Vega wrote:
> You can find out the dimension of an array like so
>
> myArray.getDimension()
>
>
> Thank You
> Dan Vega
> danv...@gmail.com
> http://www.danvega.org/
>
>
> On Thu, Dec 17, 2009 at 11:15 AM, DURETTE, STEVEN J (ATTASIAIT) <
> sd1...@
Oh! That was obvious...after you answered it. :)
Much appreciated!
--Ben
DURETTE, STEVEN J (ATTASIAIT) wrote:
> Ben,
>
> Do an arraylen on the first row. arrayLen(myVar[1])
>
> That will return the number of columns or planes.
>
> Steve
>
>
> -Original Message-
> From: Ben Conner [mai
You can find out the dimension of an array like so
myArray.getDimension()
Thank You
Dan Vega
danv...@gmail.com
http://www.danvega.org/
On Thu, Dec 17, 2009 at 11:15 AM, DURETTE, STEVEN J (ATTASIAIT) <
sd1...@att.com> wrote:
>
> Ben,
>
> Do an arraylen on the first row. arrayLen(myVar[1])
>
Ben,
Do an arraylen on the first row. arrayLen(myVar[1])
That will return the number of columns or planes.
Steve
-Original Message-
From: Ben Conner [mailto:b...@webworldinc.com]
Sent: Thursday, December 17, 2009 11:08 AM
To: cf-talk
Subject: array question
Hi,
Haven't played muc
> If I just try to do the ArrayDeleteAt(Session.UserCart, 3)
> within an ArrayLength of 4 I get the following message:
>
> The element at Position 1, of Dimension 2, of an array object
> used as part of an _expression_, cannot be found.
>
> Before I tried to delete one of the items from the car
If I just try to do the ArrayDeleteAt(Session.UserCart, 3) within an
ArrayLength of 4 I get the following message:
The element at Position 1, of Dimension 2, of an array object used as part
of an _expression_, cannot be found.
Before I tried to delete one of the items from the cart, I had the
I think you're trying to make it too hard. CF automatically "closes up"
arrays if you delete. So, all you need to do is
- Original Message -
From: "Graham Pearson" >
> I have been trying to learn array's and have a problem that I am unable to
> solve.
>
> I have a 2 Dimension Array that
Come again ??
Pascal
> -Original Message-
> From: Kimberly Dennis [mailto:[EMAIL PROTECTED]
> Sent: 01 October 2004 17:50
> To: CF-Talk
> Subject: Re: Array question
>
> I have a question on an Array too.
>
> I'm setting a number to be added to the
I have a question on an Array too.
I'm setting a number to be added to the end of an array - only up to 100.
When using an array like:
Will this work when inserting data into a table?
...
set bogus number = newNum
Will newNum(2) replace newNum(1) when newNum(1) reaches 100?
[Todays Thre
http://www.cflib.org/udf.cfm?ID=518
http://www.cflib.org/udf.cfm?ID=390
Pascal
> -Original Message-
> From: Ken Dunnington [mailto:[EMAIL PROTECTED]
> Sent: 01 October 2004 16:14
> To: CF-Talk
> Subject: [Spam?] Array question
>
> I have a (probably simple) array question that I'm hoping
Use arrayClear(session.item) or just reset the array
session.item=arrayNew(2)>
Robert Orlini wrote:
> Thank you. One more ?: How do I clear the array to start over?
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Thank you. One more ?: How do I clear the array to start over?
-Original Message-
From: Bryan F. Hogan [mailto:[EMAIL PROTECTED]
Sent: Monday, May 17, 2004 3:50 PM
To: CF-Talk
Subject: Re: Array question
Because arrayLen(session.item) is 0 and your looping from
1-arrayLen(session.item
Because arrayLen(session.item) is 0 and your looping from
1-arrayLen(session.item). If your just trying to add an item to the
array from a form post just use the following.
#arrayLen(session.item)#
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settin
ArrayToList will only accept a single dimensional array, not a two
dimensional array as you have it.
This only makes sense: what would ArrayToList() return for
multidimensional arays?
I'm not sure why you're even doing this:
listLen(arrayToList(session.cart))
There's really no need consider
ok for some reason i have an array, then another array that is the cart
items...? hmmm gotta make it one array with items, not an array with
arrays as items
thanks if any help comes this way :)
tw
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, Septemb
;) i did that and yes, of course, it works!!
tw
-Original Message-
From: Matt Liotta [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 11:01 PM
To: CF-Talk
Subject: RE: array question
Oh and in this case, i == 1.
Matt Liotta
President & CEO
Montara Software, Inc.
Oh and in this case, i == 1.
Matt Liotta
President & CEO
Montara Software, Inc.
http://www.montarasoftware.com/
888-408-0900 x901
> -Original Message-
> From: Matt Liotta [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 05, 2002 10:55 PM
> To: CF-Talk
> Subject:
matt.
i need not say anymore.
thanks.
tony
-Original Message-
From: Matt Liotta [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 10:55 PM
To: CF-Talk
Subject: RE: array question
It should be # selectedElements[i].XmlText#.
Matt Liotta
President & CEO
Montara Software,
10:56 PM
To: CF-Talk
Subject: RE: array question
and yes, i have changed xmlTest to xmlText and still no dice.
tw
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 10:53 PM
To: CF-Talk
Subject: RE: array question
is this a struct in an
It should be # selectedElements[i].XmlText#.
Matt Liotta
President & CEO
Montara Software, Inc.
http://www.montarasoftware.com/
888-408-0900 x901
> -Original Message-
> From: Tony Weeg [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 05, 2002 10:50 PM
> To: CF-Talk
> Subject: array q
and yes, i have changed xmlTest to xmlText and still no dice.
tw
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 10:53 PM
To: CF-Talk
Subject: RE: array question
is this a struct in an array?
what am i missing?
thanks again.
tw
is this a struct in an array?
what am i missing?
thanks again.
tw
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 10:50 PM
To: CF-Talk
Subject: array question
this is an array, 1 element, the first element.
if i wanted to get to the node X
inal Message-
: From: Alex [mailto:[EMAIL PROTECTED]]
: Sent: Friday, August 16, 2002 10:51 AM
: To: CF-Talk
: Subject: Re: Array question...
:
:
:
: SingleArray = ArrayNew(1);
: SingleArray[1] = "One";
: SingleArray[2] = "Planes";
: SingleArray[3] = "Twel
SingleArray = ArrayNew(1);
SingleArray[1] = "One";
SingleArray[2] = "Planes";
SingleArray[3] = "Twelve";
SingleArray[4] = "Jets";
DoubleArray = ArrayNew(2);
j=0;
for (x = 1; x lt arraylen(SingleArray); x = x + 2) {
j = j + 1;
DoubleArray[j][1] = SingleArray[x];
DoubleArray[j][2] = Si
Good point.
Thanks,
Jason
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 10:28 AM
To: CF-Talk
Subject: Re: Array question...
You could use MOD:
~
~~
~
~~
~
I haven't tested this, its just "off the cuff"
You could use MOD:
~
~~
~
~~
~
I haven't tested this, its just "off the cuff"
David Murphy
www.cfugcny.org
= = = Original message = = =
I have a single dimensional array that I want to duplicate
into a 2 dimensional array. The first dimension are all odd
numbers in the array and the seco
COM is evil! If you want to have a good middle tier that works with
multiple languages you will need to use Java and/or Corba.
-Matt
> -Original Message-
> From: David Jones [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 28, 2002 11:01 PM
> To: CF-Talk
> Subject: Array Question
>
> Tha
> I am getting an error "The element at position 2 in dimension 1 of object
> "RLDArray" cannot be found. The object has elements in positions 1 through
> 4. Please, modify the index expression."
>
> This array is generated dynamically, is there a way to test for the
> existence of an element with
The only way to check, gracefully, for an array position is with
CFTRY/CFCATCH.
===
Raymond Camden, Principal Spectra Compliance Engineer for Allaire
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
"My ally is the Force, and a po
29 matches
Mail list logo