Hi everyone, I'm stuck on this and it must be so simple but can't get my head
round it.
I have 2 different shopping cart arrays going at the same time because some
products are handled differently to 'normal' products, know it's unusual but
this is how it had to be. I also need to have a 3rd
So, I have this method setup
remote com.foo.StateDTO[] function getAllStates() {}
1) if I invoke via web browser via
http://myurl/myservice.cfc?wsdlmethod=getAllStates
it works a treat
2) if I use cfinvoke method=getAllStates webservice=
http://myurl/myservice.cfc?wsdl; I get the below
Not if any value has a comma in it. You can use other delimiters, but
then you just have a different problem.
On Wed, Apr 6, 2011 at 4:38 PM, Bobby Hartsfield bo...@acoderslife.com wrote:
Assuming you are dealing with one dimensional arrays, sure, converting it to
a list could work
...@gmail.com]
Sent: Thursday, April 07, 2011 9:43 AM
To: cf-talk
Subject: Re: Storing Arrays or Structures in a database
Not if any value has a comma in it. You can use other delimiters, but
then you just have a different problem.
On Wed, Apr 6, 2011 at 4:38 PM, Bobby Hartsfield bo
I've got really large sets of data that are related to each day of the week and
the hour. Rather then creating a massive table containing these values, I have
stored them in a Structure, but I can't seem to get Structures or Arrays to
insert into a database. How can I store an array
them in a Structure, but I can't seem to get Structures or
Arrays to insert into a database. How can I store an array or structure in a
MS 2008 SQL server?
Array Code:
cfset name=Adam /
cfscript
// 7 days, day 0 = Mon, Day 7 = sun
workWeek=[t,t,f,t,f,t,f];
/cfscript
cfinvoke method
these values,
I have stored them in a Structure, but I can't seem to get Structures or
Arrays to insert into a database. How can I store an array or structure in a
MS 2008 SQL server?
Array Code:
cfset name=Adam /
cfscript
// 7 days, day 0 = Mon, Day 7 = sun
workWeek=[t,t,f,t,f,t,f];
/cfscript
@houseoffusion.com
Subject: Storing Arrays or Structures in a database
I've got really large sets of data that are related to each day of the week
and the hour. Rather then creating a massive table containing these values,
I have stored them in a Structure, but I can't seem to get Structures or
Arrays
Arrays are easy as you can simply use Arraytolist() to convert it to a
delimited text string and then use ListtoArray() to convert back once you
get it out. Though, CF has some really nice list functions, so you might
not even have to do that. Also, select boxes return comma separated lists
then creating a massive table containing these values,
I have stored them in a Structure, but I can't seem to get Structures or
Arrays to insert into a database. How can I store an array or structure in a
MS 2008 SQL server?
Array Code:
cfset name=Adam /
cfscript
// 7 days, day 0 = Mon, Day 7 = sun
Blayter
Land line: 303.731.3009
Mobile: 303.325.1979
http://www.blayter.com/john/
Denver ColdFusion User Group Manager
http://denvercfug.org/
On Wed, Apr 6, 2011 at 12:02 PM, Jeff Garza j...@garzasixpack.com wrote:
Arrays are easy as you can simply use Arraytolist() to convert
...@gmail.com]
Sent: Wednesday, April 06, 2011 1:41 PM
To: cf-talk
Subject: Storing Arrays or Structures in a database
I've got really large sets of data that are related to each day of the week
and the hour. Rather then creating a massive table containing these values,
I have stored them
Assuming you are dealing with one dimensional arrays, sure, converting it to
a list could work.
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com
-Original Message-
From: Jeff Garza [mailto:j...@garzasixpack.com]
Sent: Wednesday, April 06, 2011 2:02
True. I used wddx to serialize some multidimensional arrays just the other
day...
Jeff
-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Wednesday, April 06, 2011 2:39 PM
To: cf-talk
Subject: RE: Storing Arrays or Structures in a database
Assuming you
To: cf-talk
Subject: RE: Storing Arrays or Structures in a database
True. I used wddx to serialize some multidimensional arrays just the
other
day...
Jeff
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com
,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
From: Jeff Garza [mailto:j...@garzasixpack.com]
Sent: Thursday, 7 April 2011 8:10 AM
To: cf-talk
Subject: RE: Storing Arrays or Structures in a database
True. I used wddx to serialize some multidimensional arrays just
On Wed, Apr 6, 2011 at 5:54 PM, Michael Grant wrote:
And you can pass it back and forth between cf and js with no fuss or muss.
Well, besides the weird is it a string or a number type of deal that
can change 8 to 8.0 and a few other oddities. ;)
:Den
--
It is easier to make a saint out of
: Storing Arrays or Structures in a database
Well, besides the weird is it a string or a number type of deal that can
change 8 to 8.0 and a few other oddities. ;)
:Den
--
~|
Order the Adobe Coldfusion Anthology now!
http
Given. I have a tendency to always use parseInt anyway, so I don't generally
suffer that woe.
However your point is well taken... a teeny bit of fuss, with a pinch of
muss.
On Wed, Apr 6, 2011 at 8:12 PM, denstar valliants...@gmail.com wrote:
On Wed, Apr 6, 2011 at 5:54 PM, Michael Grant
I was mostly just being pedantic. :) It works fine out of the box
most the time. And for the rest of the time, there's json.cfc, as
Andrew mentioned. :)
No joke that it's way better than WDDX. Three cheers for JSON! Hip, hip, hip!
:den the pelvis uno
--
It is veneer, rouge,
so, do I need to declare an array in advance, or is this implicit.
so, I guess this does not work either:
cfset LegalProteinSequence_#LoopCount# = ...
On 9/27/2010 10:10 PM, Ian Skinner wrote:
On 9/27/2010 7:37 PM, Michael Grant wrote:
#form['ExpOrg_ID_' loopCount]#
A.K.A. Array
so, do I need to declare an array in advance, or is this implicit.
Existing scopes (Form, Url, Variables, etc) can always be treated this way.
so, I guess this does not work either:
cfset LegalProteinSequence_#LoopCount# = ...
I gave you several examples of this in another thread:
[LegalProteinSequence_#LoopCount#] = ...
cfset variables[LegalProteinSequence_ LoopCount] = ...
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Rick Colman [mailto:rcol...@cox.net]
Sent: Tuesday, September 28, 2010 3:42 PM
To: cf-talk
Subject: Re: arrays
Another way:
setVariable(LegalProteinSequence_ loopcount, this-is-a-value);
On Tue, Sep 28, 2010 at 3:42 PM, Rick Colman rcol...@cox.net wrote:
so, do I need to declare an array in advance, or is this implicit.
so, I guess this does not work either:
cfset
I can't seem to get this working, and it should not be that tough?
Here what I am trying to do:
* get the number of form variables coming in
* loop through the number of variables coming in, and as each form
variable comes in, do a query
* store the results of the query in an another
#form['ExpOrg_ID_' loopCount]#
On Mon, Sep 27, 2010 at 10:29 PM, Rick Colman rcol...@cox.net wrote:
I can't seem to get this working, and it should not be that tough?
Here what I am trying to do:
* get the number of form variables coming in
* loop through the number of variables
On 9/27/2010 7:37 PM, Michael Grant wrote:
#form['ExpOrg_ID_' loopCount]#
A.K.A. Array Notation and can be applied to any variable scope, not
just the form scope, though that is probably the most common.
~|
Order the
Thanks all. That was very helpful. Here's the code I ended up using.
cfloop from=1 to=#arrayLen(keyword_results)# index=x
cfloop from=1 to=#arrayLen(keyword_results[x].images)# index=y
cfoutput#keyword_results[x].images[y]#/cfoutput
/cfloop
/cfloop
I thought images was a structure containing an array?
On Tue, Sep 21, 2010 at 5:15 PM, Richard Steele r...@photoeye.com wrote:
Thanks all. That was very helpful. Here's the code I ended up using.
cfloop from=1 to=#arrayLen(keyword_results)# index=x
cfloop from=1
/
-Original Message-
From: Jacob Munson [mailto:yacoub...@gmail.com]
Sent: Saturday, 18 September 2010 12:54 PM
To: cf-talk
Subject: Re: Looping through arrays with structures
Am I blind? The email I read from Michael does NOT show the array
attribute. In fact, his loop looks
I have an array with a structure that has an array. How do I loop through this
in CF8 and retrieve the second array's 5 digit numbers? Thanks in advance.
array
1 |
| struct
| IMAGES |
| | array
| | 1 | 18990
| | 2 | 8
| | 3 | 39209
cfloop from=1 to=#arrayLen(firstArray)# index=x
cfloop from=1 to=#arrayLen(firstArray[x].images.secondArray)#
index=y
cfoutput#firstArray[x].images.secondArray[y]#/cfoutput
/cfloop
/cfloop
On Fri, Sep 17, 2010 at 8:18 PM, Richard Steele r...@photoeye.com wrote:
I have an array with a
/cfloop
Regards,
Andrew Scott
http://www.andyscott.id.au/
-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz]
Sent: Saturday, 18 September 2010 10:35 AM
To: cf-talk
Subject: Re: Looping through arrays with structures
cfloop from=1 to=#arrayLen(firstArray)# index=x
2010 10:35 AM
To: cf-talk
Subject: Re: Looping through arrays with structures
cfloop from=1 to=#arrayLen(firstArray)# index=x
cfloop from=1 to=#arrayLen(firstArray[x].images.secondArray)#
index=y
cfoutput#firstArray[x].images.secondArray[y]#/cfoutput
/cfloop
/cfloop
Grant [mailto:mgr...@modus.bz]
Sent: Saturday, 18 September 2010 11:09 AM
To: cf-talk
Subject: Re: Looping through arrays with structures
What version of cf won't my code work in?
~|
Order the Adobe Coldfusion Anthology now
-
From: Michael Grant [mailto:mgr...@modus.bz]
Sent: Saturday, 18 September 2010 10:35 AM
To: cf-talk
Subject: Re: Looping through arrays with structures
cfloop from=1 to=#arrayLen(firstArray)# index=x
cfloop from=1 to=#arrayLen(firstArray[x].images.secondArray)#
index=y
: Re: Looping through arrays with structures
What version of cf won't my code work in?
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag
:54 PM
To: cf-talk
Subject: Re: Looping through arrays with structures
Am I blind? The email I read from Michael does NOT show the array
attribute. In fact, his loop looks exactly like your code.
~|
Order the Adobe
It's not clear what you're trying to do.
Can you post examples of each type of value it might contain, and whether that
is considered true/false?
(It's probably still simplest to step through the array and check each value
though.)
You can do listFind(arrayToList(aYourArray),1) for the bit datatypes. I'm
not sure what the performance of that will be if your array is very large,
though.
For the string array, you can do NOT listFind(arrayToList(aYourArray,))
I'm not sure if that logic is exactly correct, but it should get
In CF9, Adobe have (finally) added the ArrayFind function, which simplifies
that code.
(Also available in OpenBD v1.3 and above, and in Railo since early days.)
~|
Order the Adobe Coldfusion Anthology now!
If any of the elements of an array have a value of 1 for bit datatypes or don't
have empty strings for string datatypes, then I need to have my program do one
thing, otherwise, if everything is either empty or false, another thing. I
could parse the array and get their values, but I wonder if
If any of the elements of an array have a value of 1 for bit datatypes or if
all string datatypes are empty, then I need to have my program do one thing,
otherwise, if everything is either empty or false, another thing. I could
parse the array and get their values, but I wonder if there is an
For some reason I have a mental block when it comes to arrays.
At the top of the page is: cfset SESSION.Report = StructNew()
I pull info (if it exists) with a query:
cfquery name=GetLats datasource=#SESSION.ds#
SELECT tblLaterals.latID
Array problems #2
Since I have nothing to load into the array, yet, my last functional directive
was
cfset SESSION.Report.Lats = ArrayNew(2)
The next piece of related offending code is
cfif ArrayLen(SESSION.Report.Lats) GT 0
Lateral reporting structure:
ul
cfloop
Larry,
Not sure exactly what you're going for. But rather than go into array usage
(and looping a collection), which you can probably learn better elsewhere,
maybe there's a simpler way to attack the problem.
In the end, you seem to simply want to go over a query result:
cfquery name=GetLats
@larry
try [1st dim][2nd dim] instead of [a,b]
cfset SESSION.Report.Lats[#a#][1] = latID
regards
Bob
From: Stephens, Larry V steph...@indiana.edu
To: cf-talk cf-talk@houseoffusion.com
Sent: Fri, February 5, 2010 4:06:48 PM
Subject: Arrays - humbug
-Ursprüngliche Nachricht-
Von: Stephens, Larry V [mailto:steph...@indiana.edu]
Gesendet: Freitag, 5. Februar 2010 15:07
An: cf-talk
Betreff: SPAM-LOW: Arrays - humbug! - Part 1
For some reason I have a mental block when it comes to arrays.
At the top of the page is: cfset SESSION.Report = StructNew
-Ursprüngliche Nachricht-
Von: Stephens, Larry V [mailto:steph...@indiana.edu]
Gesendet: Freitag, 5. Februar 2010 15:10
An: cf-talk
Betreff: SPAM-LOW: Arrays - humbug! - Part 2
Array problems #2
Since I have nothing to load into the array, yet, my last functional
directive was
cfset
Thanks to those who responded. This does fix it. Knew that, forgot it, need to
get it tattooed on me somewhere.
-Original Message-
From: I. Addoum. [mailto:sol_xp...@yahoo.com]
Sent: Friday, February 05, 2010 9:58 AM
To: cf-talk
Subject: Re: Arrays - humbug! - Part 1
@larry
To: cf-talk
Subject: Re: Arrays - humbug! - Part 2
Larry,
Not sure exactly what you're going for. But rather than go into array usage
(and looping a collection), which you can probably learn better elsewhere,
maybe there's a simpler way to attack the problem.
In the end, you seem to simply want
For further manipulation, it's also sometimes handy to remember that a query
object is essentially a struct of arrays, with the selected columns at
struct keys.
So you can also do things like:
cfif Session.Report.lats.recordCount GT 0
cfloop from=1 to #Session.Report.lats.recordCount# index=i
hi
is there a function to compare 2 arrays or lists and return the values that
exist in both?
i have found plenty they return then difference but not for this case
thanks
~|
Want to reach the ColdFusion community
http://cflib.org/udf/listVenn
On Thu, Oct 15, 2009 at 6:05 AM, Richard White rich...@j7is.co.uk wrote:
hi
is there a function to compare 2 arrays or lists and return the values that
exist in both?
i have found plenty they return then difference but not for this case
thanks
is there a function to compare 2 arrays or lists and return
the values that exist in both?
Not that I know of, but you could create your own. Though I have not looked,
but I would be very surprised if cflib.org did not already have a function for
this
This could certainly be improved
neat function!
thanks to all posts
http://cflib.org/udf/listVenn
On Thu, Oct 15, 2009 at 6:05 AM, Richard White rich...@j7is.co.uk wrote:
~|
Want to reach the ColdFusion community with something they want? Let them know
http://cflib.org/udf/listVenn
Hah! I knew cflib.org must have a function for that ... ;-)
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
I have an app currently that needs a list sorted alphabetically with
alpha-numeric chars. I am using a query and then narrowing the results into an
array and then creating two lists for an autosuggest. Imagine searching by an
alphanumeric ID (not SQL ID) and also by the description:
1234ii --
Tony,
Probably a ton of ways to do this. Would this get you what you want?:
(note: the below would be for oracle, you need + instead of || for Sql
server - not sure about what db you're using)
cfquery datasource=whatever name=qMySuggestions
select sql_id,
Okay I figured it was going to be a query based solution. Turns out there is a
table in SQL Server that lists all chars in ASCII so I can sort based on that
table's numeric values and then return two columns to output. Pretty RAD.
here's the t-sql to generate it.
Sorry, forgot to mention that the query above just returns the ASCII chars.
Then I use a different query to classify the first char:
DECLARE @ErrorNum INT
SET @ErrorNum = 1
DECLARE @ TABLE (
[Id]INT,
[Name] VARCHAR(255),
[Number]VARCHAR(255),
[_] VARCHAR(255),
I thought this would be something fun to discuss. How do you output implicit
arrays?
here is the array (we will use a navigation as an example):
navigation = [
{name=home,href=index.cfm,class=nav},
{name=contact,href=contact.cfm,class=nav
The same was as non-literal arrays? CFLOOP, CFDUMP, serializeJson,
there are lots of ways. I'm not sure what you want to discuss?
On Thu, Aug 20, 2009 at 1:30 PM, Tony Bentleyt...@tonybentley.com wrote:
I thought this would be something fun to discuss. How do you output implicit
arrays
On Thu, Aug 20, 2009 at 4:30 PM, Tony Bentleyt...@tonybentley.com wrote:
I thought this would be something fun to discuss. How do you output implicit
arrays?
Once you create the array, there is no difference between an
implicitly created array and an array created via ArrayNew()
So... you
I am trying to add my Pagelist to the array .. using structure. I am using
structure to add everytime pagelist to an array so that I can display my list
of pages updated or inserted on every user session. This is wat I am using...
cfparam name=session.pageList default=arrayNew()
!--- Append a
ArrayAppend does not return the array - it returns True, on
successful completion.
(http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentationfile=0381.htm)
So:
cfparam name=session.pageList default=#arrayNew(1)# /
cfset
You're setting the value of session.pageList to the string arrayNew(), which
is throwing your error. If you're using cfparam then you need the # signs and
to create an array you need to specify the number of dimensions (in this case
1):
cfparam name=session.pageList default=#arrayNew(1)# /
Jason Fisher wrote:
If you're using cfparam then you need the # signs
Or get rid of the quotes.
cfparam name=session.pageList default=#arrayNew(1)# /
I.E. This also works.
cfparam name=session.pageList default = arrayNew(1) / !--- note the
lack of quotes in the default parameter ---
I am getting an error here:
*session.pageList = arrayAppend( session.pageList, structNew() ) *
Error:
Object of type class java.lang.Boolean cannot be used as an array
On Wed, Mar 11, 2009 at 9:55 AM, Jason Fisher ja...@wanax.com wrote:
You're setting the value of session.pageList to the
As Dominic pointed out above, just do:
cfset arrayAppend( session.pageList, structNew() ) /
ArrayAppend() returns true / false, not an array.
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
yes, as jason pinted out, arrayappend() function differs from
listappend() - with arrayappend() one should not set the array to the
function's return:
with arrayappend:
cfset arrayappend(arrayvar, value_to_append)
but with listappend() one has to do:
cfset prev_defined_list_var =
Priya Koya wrote:
I am getting an error here:
*session.pageList = arrayAppend( session.pageList, structNew() ) *
Error:
Object of type class java.lang.Boolean cannot be used as an array
On Wed, Mar 11, 2009 at 9:55 AM, Jason Fisher ja...@wanax.com wrote:
As Dominic previously stated,
Jason,
cfparam name=session.pageList default= arrayNew(1)
cfparam name=session.pageList default=#arrayNew(1)#
cfparam name=session.pageList default=#arrayNew(1)#
cfparam name=session.pageList default=arrayNew(1)
cfparam name=session.pageList default=#arrayNew(1)#
nothing works
I
Ian Skinner wrote:
The first time you run that line you are overwriting your array and
turning it into an array...
The first time you run that line you are overwriting your array and
turning it into an *boolean* ...
That would make more sense, wouldn't it.
Priya Koya wrote:
nothing works
That is because the cfparam... tag is not your problem.
Your problem is that in the loop, the first iteration changes your array
into a boolean. Then the second iteration throws an error because you
try to use that boolean variable as an array.
See
Out of interest, I wonder what would have to happen for ArrayAppend to
return false?!
Adrian
-Original Message-
From: Dominic Watson [mailto:watson.domi...@googlemail.com]
Sent: 11 March 2009 12:37
To: cf-talk
Subject: Re: Append Arrays with Structures
ArrayAppend does
...@adrianlynch.co.ukwrote:
Out of interest, I wonder what would have to happen for ArrayAppend to
return false?!
Adrian
-Original Message-
From: Dominic Watson [mailto:watson.domi...@googlemail.com]
Sent: 11 March 2009 12:37
To: cf-talk
Subject: Re: Append Arrays with Structures
March 2009 12:37
To: cf-talk
Subject: Re: Append Arrays with Structures
ArrayAppend does not return the array - it returns True, on
successful completion.
(
http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/
html/wwhelp.htm?context
Priya Koya wrote:
Is this right?
cfset myarray = arrayNew(1)
cfset session.pageList = arrayAppend( myarray, structNew() )
cfset NumberPage = arraylen(session.PageList)
for finding out he arraylen??
because this is where it is giving me the error..
Yes, it was, Charlie just explained
@Adrian,
Interesting question ... can't really think of anything off-hand.
From: Adrian Lynch cont...@adrianlynch.co.uk
Sent: Wednesday, March 11, 2009 11:25 AM
To: cf-talk cf-talk@houseoffusion.com
Subject: RE: Append Arrays with Structures
Out
Sent: Wednesday, March 11, 2009 11:25 AM
To: cf-talk cf-talk@houseoffusion.com
Subject: RE: Append Arrays with Structures
Out of interest, I wonder what would have to happen for ArrayAppend to
return false?!
Adrian
Thanks for the info, Dominic. Seems like that shouldn't make sense ... a
Boolean that has no 'off' state, yet it perfectly makes sense that only an
exception could be 'false' and exceptions need to be thrown, not simply
reported as 'false'.
Thanks!
Jason
Seems like that shouldn't make sense ... a Boolean that has no 'off' state
Nowhere states that the function returns a boolean ;) But it is odd,
indeed, why return anything at all. I've done it myself in functions
and justified it with 'One day I may have some logic that returns
false and then
But it is odd, indeed, why return anything at all.
It depends on the class. Some use it and some do not
http://java.sun.com/j2se/1.4.2/docs/api/java/util/AbstractCollection.html#add(java.lang.Object)
I don't believe that it ever does return false and the docs do not
indicate that it does.
All speculation (though I'm sure someone here knows the answer for sure) but:
It may not be due to the java link. I found a reference that says ArrayAppend
returned a boolean back in the days of CF 4.5. So it may just be a carry
over.
This would suggest that it *would* be to do with the
Nowhere states that the function returns a boolean ;) But it is odd,
indeed, why return anything at all. I've done it myself in functions
and justified it with 'One day I may have some logic that returns
false and then the calling code that is checking for the boolean wont
break.
CF
It may not be due to the java link. I found a reference that says
ArrayAppend returned a boolean back in the days of CF 4.5. So it may
just be a carry over.
This would suggest that it *would* be to do with the java link;
ColdFusion 4.5 was written in C++ ;)
No, I just meant that the
Ah, we are at cross wires! I was citing the java method as a possible
reason for the function only ever returning true (or my suspicion that
it never returns false, in response to Adrian's question) - not for it
returning a boolean (which of course it does). Perhaps pre-6 it did
sometimes return
Ah, we are at cross wires!
Well that makes a lot more sense. That is what I get for only reading half of
the thread ...
Anyways, I wonder if the OP has found his solution yet ;)
Wait .. there was an OP? ;-)
~|
Adobe®
*beats head on desk*
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
2009/3/12 Priya Koya priya23...@gmail.com:
Is this right?
cfset myarray = arrayNew(1)
cfset session.pageList = arrayAppend( myarray, structNew() )
Interesting Will. So does your outer-most structure have some sort of
incremental key? Personally an array of structs seems easier to me
because the array implies a series of something. As far as updating
and the code to deal with them it is pretty much 6 or 1/2 dozen I
would think.
I have a
Hi
I am currently getting trying to get my head arounds arrays. The shopping cart
system i use, stores the cart details into an array. I need to be able to
update the array with a figure at a certain point. Please see array structure
below;
The place i need to enter is ITEMS, zone cost
that I wasn't sure
if it was relevant.
-Matt
On Sun, Feb 8, 2009 at 5:36 AM, Jason Congerton
ja...@jasoncongerton.co.uk wrote:
Hi
I am currently getting trying to get my head arounds arrays. The shopping
cart system i use, stores the cart details into an array. I need to be able
to update
Hi Matt
Thanks for the reply, you understood correctly. I will now have a play with
your code and post my results. I kind of thought i would have to loop through
the array, but could work out how to update, and at the right position.
Thank you
Hey Jason, if you don't already know which
I find a structure of structures to be better-understood, and easily updated.
I have some example code from my cart if you want it.
Will
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
On Sun, Feb 8, 2009 at 8:04 AM, Will Tomlinson w...@wtomlinson.com wrote:
I find a structure of structures to be better-understood, and easily updated.
Interesting Will. So does your outer-most structure have some sort of
incremental key? Personally an array of structs seems easier to me
An array of structs is effectively a query.
And having it in query form generally makes it easier to handle - much more
powerful sorting and filtering (using QoQ).
~|
Adobe® ColdFusion® 8 software 8 is the most important and
Your point about being able to use QoQ is a good one. It turns out that a
query is actually implemented as a struct of arrays (where the struct key is
the name of the column), and the most annoying thing about that is having to
index the arrays by current row all of the time, vs a true array
? Does that sound
reasonable? e.g. cfset projects[finYear][month] = StructNew(). Please advise.
Regards, Kamru
i did a 3 part tutorial on arrays and structures that might be of some help.
http://tutorial171.easycfm.com/
http://tutorial172.easycfm.com/
http://tutorial173.easycfm.com/
check 'em out
Hi, I am new to developing code with multi-dimensional arrays (or structures).
Could someone please advise me how to implement the following 4-level loops to
store the financial values (for outputting at a later stage)?
---
Loop by projNo
Loop by finYear
Loop by account type (4 types
1 - 100 of 491 matches
Mail list logo