RE: structures

2008-02-04 Thread Andy Matthews
Simplest thing to do is #session.questionDetails[1]['#currentID#']# -Original Message- From: Richard White [mailto:[EMAIL PROTECTED] Sent: Saturday, February 02, 2008 5:04 AM To: CF-Talk Subject: structures Hi, i can reference a structure to get the value no problem like this:

Re: structures

2008-02-02 Thread James Holmes
What do you get if you CFDUMP the value of #session.questionDetails[1][currentID]# instead? On Feb 2, 2008 8:04 PM, Richard White [EMAIL PROTECTED] wrote: Hi, i can reference a structure to get the value no problem like this: cfoutput#session.questionDetails[1].subjectID#/cfoutput but i

Re: structures

2008-02-02 Thread Richard White
Hi James, good idea!!! i cfdumped it and it did output only 1 value e.g. '44' - the contents they are supposed to be so im not sure why it is saying that it is a complex data type thanks James ~| Adobe® ColdFusion® 8

Re: structures

2008-02-02 Thread Brian McCairn
Hi James, good idea!!! i cfdumped it and it did output only 1 value e.g. '44' - the contents they are supposed to be so im not sure why it is saying that it is a complex data type thanks James ~| Adobe®

RE: structures

2008-02-02 Thread Adrian Lynch
That looks right. Maybe something else is happening. Is there any more code to show? Here's some sample code to show that what you're after should work... cfscript st = StructNew(); st.a = A; a = a; /cfscript cfoutput p#st.a#/p hr / p#st[a]#/p

Re: structures

2008-02-02 Thread Richard White
Hi Adrian, you are absolutely right, i was creating the structure directly from a query, therefore even though the query is only returning 1 row it is still saving as a complex structure thanks very much, i have now sorted this out!!! thanks again

RE: Structures... How Do I properly write this?

2007-06-14 Thread Che Vilnonis
--- Bangs Head on Desk --- Duh! -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 5:17 PM To: CF-Talk Subject: Re: Structures... How Do I properly write this? As a StructKeyIsEmpty wouldn't be a key :-) This e-mail is from

RE: Structures... How Do I properly write this?

2007-06-14 Thread Che Vilnonis
I fixed my typo but I'm still getting errors with the code below. The error I now get reads: Element 1 is undefined in a CFML structure referenced as part of an expression. I'm sure this is a simple fix... What am I missing? -Original Message- Basically, I have nested structures. I want

Re: Structures... How Do I properly write this?

2007-06-14 Thread Qasim Rasheed
Use this cfloop from=1 to=#ArrayLen( xmlcontent.message.items.item )# index=x cfif NOT StructKeyExists( stWSSB_Tickler, x ) cfset stWSSB_Tickler[x] = StructNew() / /cfif cfif ( NOT StructKeyExists( stWSSB_Tickler[x], 'tickler' ) ) OR ( StructKeyExists(

Re: Structures... How Do I properly write this?

2007-06-13 Thread Josh Nathanson
cfif NOT structKeyIsEmpty(stWSSB_Tickler[x]) StructKeyIsEmpty is not a function, I think you want StructIsEmpty. -- Josh ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade see new

Re: Structures... How Do I properly write this?

2007-06-13 Thread Robertson-Ravo, Neil (RX)
Sent: Wed Jun 13 22:16:34 2007 Subject: Re: Structures... How Do I properly write this? cfif NOT structKeyIsEmpty(stWSSB_Tickler[x]) StructKeyIsEmpty is not a function, I think you want StructIsEmpty. -- Josh ~| Create robust

Re: Structures

2007-04-09 Thread Scott Stroz
I can't see why not. On 4/9/07, Scott Stewart [EMAIL PROTECTED] wrote: Hey all, I have series of values that looks like this (sort of) A, b C, d E, f G, h Can I put this into a structure? Thanks sas -- Scott Stewart ColdFusion Developer SSTWebworks 7241

RE: Structures

2007-04-09 Thread Ben Nadel
Sure thing (I think): cfset objValues = StructNew() / cfset objValues[ A ] = b / cfset objValues[ C ] = d / cfset objValues[ E ] = f / cfset objValues[ F ] = h / .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help?

RE: Structures

2007-04-09 Thread Andy Matthews
Possibly. Is b the value of A? If each item on the left is meant to be a key with it's intended value on the right, then by all means. Put that bad boy into a structure. -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 8:12 AM To: CF-Talk

RE: Structures

2007-04-09 Thread Scott Stewart
-Talk Subject: RE: Structures Possibly. Is b the value of A? If each item on the left is meant to be a key with it's intended value on the right, then by all means. Put that bad boy into a structure. -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: Monday, April 09

RE: Structures

2007-04-09 Thread Andy Matthews
Okay...you could still put them into a structure if you want. What is it that you're trying to accomplish? -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 8:25 AM To: CF-Talk Subject: RE: Structures No, A and B are separate values. sas

RE: Structures

2007-04-09 Thread Konopka, Dave
: mainStruct.Something.One mainStruct.Something.Two __ Dave Konopka http://www.lifelikeweeds.com/tech -Original Message- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 9:25 AM To: CF-Talk Subject: RE: Structures No, A and B

RE: Structures

2007-04-09 Thread Scott Stewart
this makes sense -- Scott Stewart ColdFusion Developer SSTWebworks 7241 Jillspring Ct. Springfield, Va. 22152 (703) 220-2835 http://www.sstwebworks.com -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 9:39 AM To: CF-Talk Subject: RE: Structures

Re: Structures

2007-04-09 Thread James Holmes
Using ceateobject inside each iteration of the loop to create exactly the same object each time is going to be part of that slowness... On 4/9/07, Scott Stewart [EMAIL PROTECTED] wrote: Here's what I've got so far... it works but it's not elegant and it's way slow. -- mxAjax / CFAjax docs

RE: Structures

2007-04-09 Thread Scott Stewart
Thanks... sas -- Scott Stewart ColdFusion Developer SSTWebworks 7241 Jillspring Ct. Springfield, Va. 22152 (703) 220-2835 http://www.sstwebworks.com -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 9:58 AM To: CF-Talk Subject: Re

Re: Structures in Java?

2006-10-02 Thread Barney Boisvert
The container takes care of the majority of threading issues for you; only when multiple requests access the same data (i.e. session or application scope) does threading matter to the application developer. If you have request-level data, concurrency isn't be a concern unless you're explicitly

Re: Structures in Java?

2006-10-02 Thread Denny Valliant
Thanks Guys, that is some excellent info to keep in mind. (and that I sometimes forget to think about (e.g. worked fine in dev mode, how come it's all squirrly now?!?! ;)). Yet I went with the thread safe ajax stuff at first... just cuz... how haphazard of me. =P I vow to become a more aware

Re: Structures in Java?

2006-10-01 Thread Dave Carabetta
On 10/1/06, D F [EMAIL PROTECTED] wrote: Is there anything in Java similar to Coldfusions Structures? Remember that ColdFusion is compiled to Java, so there's always going to be a related data type between the two languages. In this case, you want a HashMap, which is what a CF structure is

Re: Structures in Java?

2006-10-01 Thread D F
Thanks Dave, so presumably this HashMap object can be passed around through various methods etc? On 10/1/06, D F [EMAIL PROTECTED] wrote: Is there anything in Java similar to Coldfusions Structures? Remember that ColdFusion is compiled to Java, so there's always going to be a related data

Re: Structures in Java?

2006-10-01 Thread Dave Carabetta
On 10/1/06, D F [EMAIL PROTECTED] wrote: Thanks Dave, so presumably this HashMap object can be passed around through various methods etc? If I'm understanding what you're trying to to do, then yes, you can pass Java objects just like you can pass CF objects around. The big difference is that,

Re: Structures in Java?

2006-10-01 Thread Denny Valliant
On 10/1/06, D F [EMAIL PROTECTED] wrote: Thanks Dave, so presumably this HashMap object can be passed around through various methods etc? Pretty much. I think the one thing you need to keep in your head is that in java, everything starts at 0, and CF starts with 1. There is a word that I

Re: Structures in Java?

2006-10-01 Thread Mark Mandel
Your probably better off with a java.util.Hashtable, as it is already syncronised (thread safe), and more often than not, where are using Hashtables in a web environment, they need to be thread safe. That being said, java.util.Collections gives you some easy to use utilities to create

RE: Structures vs. Real Structures

2005-05-26 Thread Mark A Kruger
[mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 7:56 PM To: CF-Talk Subject: RE: Structures vs. Real Structures -Original Message- From: Rebecca Wells [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 6:58 PM To: CF-Talk Subject: RE: Structures vs. Real Structures So

RE: Structures vs. Real Structures

2005-05-26 Thread Mark A Kruger
: Tuesday, May 24, 2005 7:56 PM To: CF-Talk Subject: RE: Structures vs. Real Structures -Original Message- From: Rebecca Wells [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 6:58 PM To: CF-Talk Subject: RE: Structures vs. Real Structures So, if you can't just use the structname

RE: Structures vs. Real Structures

2005-05-26 Thread Jim Davis
-Original Message- From: Mark A Kruger [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 10:41 AM To: CF-Talk Subject: RE: Structures vs. Real Structures This is what Isaac was talking about. on CFMX 7 arraySum(queryname.coluname) doesn't work. But arraySum(queryname

RE: Structures vs. Real Structures

2005-05-26 Thread Mark A Kruger
ha... -Original Message- From: Jim Davis [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 10:08 AM To: CF-Talk Subject: RE: Structures vs. Real Structures -Original Message- From: Mark A Kruger [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 10:41 AM To: CF-Talk

RE: Structures vs. Real Structures

2005-05-24 Thread Kevin Aebig
I'm not sure you could actually make an argument one way or another. Like most tools, they're better than the other depending on the situation. To say that one is real is to assume the other is fake... and everyone knows thats not the case. Kevin -Original Message- From: Rebecca Wells

RE: Structures vs. Real Structures

2005-05-24 Thread Jim Davis
-Original Message- From: Rebecca Wells [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 5:30 PM To: CF-Talk Subject: Structures vs. Real Structures This reminds me of something that my boss and I argued about... I said that query recordsets and forms are structures, and he

RE: Structures vs. Real Structures

2005-05-24 Thread Rebecca Wells
So, if you can't just use the structname[structKey] kind of reference for a query then how can you reference reference a query value using this model, if at all? -Original Message- The FORM scope (and all other scopes) are plain-jane structs - there's no real difference between them

Re: Structures vs. Real Structures

2005-05-24 Thread Charlie Griefer
actually you can... queryname.columnName[rowNumber] (which is a way to loop over query data in cfscript) On 5/24/05, Rebecca Wells [EMAIL PROTECTED] wrote: So, if you can't just use the structname[structKey] kind of reference for a query then how can you reference reference a query value

RE: Structures vs. Real Structures

2005-05-24 Thread Jim Davis
-Original Message- From: Rebecca Wells [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 6:58 PM To: CF-Talk Subject: RE: Structures vs. Real Structures So, if you can't just use the structname[structKey] kind of reference for a query then how can you reference reference

Re: Structures (probably a stupid question)

2005-04-25 Thread Al Everett
The thing that helped me understand structures more than anything else was the good old CFDUMP tag. When I could see the structure it all made sense. On 4/24/05, Thane Sherrington [EMAIL PROTECTED] wrote: At 12:57 PM 24/04/2005, Sean Corfield wrote: If you're just getting your head around

Re: Structures (probably a stupid question)

2005-04-25 Thread Dave Carabetta
On 4/25/05, Al Everett [EMAIL PROTECTED] wrote: The thing that helped me understand structures more than anything else was the good old CFDUMP tag. When I could see the structure it all made sense. The only thing to keep in mind if you're going to rely on CFDUMP to learn structures is that

RE: Structures (probably a stupid question)

2005-04-24 Thread Adrian Lynch
cfset myArrayOfStructs = ArrayNew(1) cfset myArrayOfStructs[1] = StructNew() cfset myArrayOfStructs[1].FName = Adrian cfset myArrayOfStructs[1].LName = Lynch cfset myArrayOfStructs[1].EMail = [EMAIL PROTECTED] cfset myArrayOfStructs[2] = StructNew() cfset myArrayOfStructs[2].FName = Thane cfset

Re: Structures (probably a stupid question)

2005-04-24 Thread Sean Corfield
On 4/24/05, Thane Sherrington [EMAIL PROTECTED] wrote: I'm trying to understand structures - I understand that they are like the form scope in that I can access them as myStruct.myVar, but is there a way to create an array of structures? myArray = arrayNew(1) myArray[1] = structNew()

RE: Structures (probably a stupid question)

2005-04-24 Thread Thane Sherrington
At 12:57 PM 24/04/2005, Adrian Lynch wrote: cfset myArrayOfStructs = ArrayNew(1) cfset myArrayOfStructs[1] = StructNew() cfset myArrayOfStructs[1].FName = Adrian cfset myArrayOfStructs[1].LName = Lynch cfset myArrayOfStructs[1].EMail = [EMAIL PROTECTED] cfset myArrayOfStructs[2] = StructNew()

Re: Structures (probably a stupid question)

2005-04-24 Thread Thane Sherrington
At 12:57 PM 24/04/2005, Sean Corfield wrote: If you're just getting your head around this stuff, I strongly suggest you buy Jeff Peters' book: ColdFusion Lists, Arrays Structures: http://www.protonarts.com/index.cfm?fuseaction=Books.showBookDetailsISBN=0975264702 Thanks for the suggestion. I

RE: Structures (probably a stupid question)

2005-04-24 Thread Ewok
If it’s a query structure your after you can just use... a query structure Eg. cfset person = QueryNew(fname,lname,email) cfset QueryAddRow(person) cfset QuerySetCell(person, fname John) cfset querySetCell(person, lname, Doe) cfset QuerySetCell(person, email, [EMAIL PROTECTED]) cfset

RE: Structures (probably a stupid question)

2005-04-24 Thread Jim Davis
-Original Message- From: Thane Sherrington [mailto:[EMAIL PROTECTED] Sent: Sunday, April 24, 2005 11:21 AM To: CF-Talk Subject: Structures (probably a stupid question) I'm trying to understand structures - I understand that they are like the form scope in that I can access them as

Re: Structures (probably a stupid question)

2005-04-24 Thread Will Tomlinson
At 12:57 PM 24/04/2005, Sean Corfield wrote: If you're just getting your head around this stuff, I strongly suggest you buy Jeff Peters' book: ColdFusion Lists, Arrays Structures: Excellent advice. Jeff Peters' book is a great read. Real world examples, etc.. Will

Re: Structures and Sorting

2005-01-06 Thread Candace Cottrell
Nevermind y'all, I see what I was doing now. ;) CKC Hello fam! It's been a while!! I am working on a project where I need to be able to sort the results by the directory size. I am using the custom tag to pull back the cfdirectory info (folder sizes) and then nesting another one within that to

Re: [structures] How would you do this?

2004-09-15 Thread Barney Boisvert
I'd use an array of structures, personally. images[n].fileLocation = ; images[n].fileTitle = ; images[n].fileDescription = ; Arrays lend themselves to looping better than structures, because the order of elements returned in a structure loop is undefined.Arrays will always return in the same

Re: [structures] How would you do this?

2004-09-15 Thread Phill B
I figured it out. On Wed, 15 Sep 2004 10:25:07 -0500, Phill B [EMAIL PROTECTED] wrote: I'm trying to put some picture info into a variable that will be easy for the designers to use. I have to query a database to get specific images. I then tweak the results and want to put them into a

Re: structures how big?

2004-09-12 Thread Douglas Knudsen
its all in RAM, so how much you got?;) Hmmm, on a shared host thingy under CF5, there was only one instance, eh?So all sites on the host shared the RAM, correct?Under CFMX are hosts setting up JRun instances for each site and sequestering/limiting each sites RAM? Curious. Doug - Original

Re: structures how big?

2004-09-12 Thread Robert Munn
Thinking of putting a lot of info' in structures and stored in the application scope that were previously accessed direct from the database. How big can these structures be and how does one guage a maximum size assuming one can measure their size? I am on a shared hosting site. any

Re: structures how big?

2004-09-12 Thread Andrew Grosset
Thanks for the replys, I intend to load some fairly simple stuff straight out of the database which on the whole won't require any processing, so a server re-start shouldn't be too serious. My host uses MX6.1. Andrew [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe]

RE: Structures and CFCs

2004-03-04 Thread Raymond Camden
I must not be understanding your quesiton right. You should have no problems doing this: cfset s = structNew() cfset s.name = goo cfset myCFC = createObject(component,somecfc) cfset result = myCFC.myMethod(s) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User

Re: Structures and CFCs

2004-03-04 Thread Hugo Ahlenius
- Original Message From: Raymond Camden [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 15:48 Subject: RE: Structures and CFCs | I must not be understanding your quesiton right. You should have

RE: Structures native order

2004-01-12 Thread Dave Watts
If I loop over a query, which I have retrieved in the order I want it in, and add the data to a structure, I am finding it does not stay in that order. A few records from the query: 262 Alabama 211 Alaska 212 Arizona 213 Arkansas 214 California When I loop over the collection

RE: Structures native order

2004-01-12 Thread DURETTE, STEVEN J (AIT)
To: CF-Talk Subject: RE: Structures native order If I loop over a query, which I have retrieved in the order I want it in, and add the data to a structure, I am finding it does not stay in that order. A few records from the query: 262 Alabama 211 Alaska 212 Arizona 213 Arkansas 214

RE: Structures native order

2004-01-12 Thread Daniel O'Keefe
I'll try that. Thank you very much, Dan -Original Message- From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 1:24 PM To: CF-Talk Subject: RE: Structures native order This sounds to me like a good case for a combo array/structure. Try

RE: Structures native order

2004-01-12 Thread Dave Watts
This sounds to me like a good case for a combo array/structure. Why not just access the query object when you need the values? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 [Todays Threads] [This Message] [Subscription] [Fast

RE: Structures native order

2004-01-12 Thread Daniel O'Keefe
That's a thought. I am caching the query and was storing the structure in the application scope. Dan -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 1:44 PM To: CF-Talk Subject: RE: Structures native order This sounds to me like a good

RE: Structures native order

2004-01-12 Thread Dave Watts
That's a thought. I am caching the query and was storing the structure in the application scope. Never make things more complicated than they need to be. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 [Todays Threads] [This Message]

RE: Structures : Capitalizing

2002-08-21 Thread Robertson-Ravo, Neil (REC)
ah, it seems that its CF capitalizing it as soon as I place it into the cfapplication name attribute very very annoying Neil -Original Message- From: Robertson-Ravo, Neil (REC) [mailto:[EMAIL PROTECTED]] Sent: 21 August 2002 12:49 To: CF-Talk Subject: Structures :

RE: Structures : Capitalizing

2002-08-21 Thread Raymond Camden
To: CF-Talk Subject: RE: Structures : Capitalizing ah, it seems that its CF capitalizing it as soon as I place it into the cfapplication name attribute very very annoying Neil -Original Message- From: Robertson-Ravo, Neil (REC) [mailto:[EMAIL PROTECTED

RE: Structures : Capitalizing

2002-08-21 Thread Robertson-Ravo, Neil (REC)
, August 21, 2002 7:53 AM To: CF-Talk Subject: RE: Structures : Capitalizing ah, it seems that its CF capitalizing it as soon as I place it into the cfapplication name attribute very very annoying Neil -Original Message- From: Robertson-Ravo, Neil (REC

RE: Structures : Capitalizing

2002-08-21 Thread Raymond Camden
(REC) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 8:00 AM To: CF-Talk Subject: RE: Structures : Capitalizing ah, so its a FOL? its not a big problem, and in fact I have got around it by using a different variable for it... and not using the Application[Name] variable

RE: Structures : Capitalizing

2002-08-21 Thread Robertson-Ravo, Neil (REC)
Fact of Life. you know, software cycle bug tracking. :-) NAB, FOL, PFR, QRB etc... -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: 21 August 2002 13:10 To: CF-Talk Subject: RE: Structures : Capitalizing FOL

RE: Structures and SetVariable() function

2001-11-01 Thread Raymond Camden
Why not just do: CFSET X[Foo] = Whatever ? Or, in your case, CFSET Ses.Profile[frm#qryGetInfo.FormNumber#].Value = Whatever === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL

RE: Structures and SetVariable() function

2001-11-01 Thread Aaron Rouse
Maybe because I have been focusing in the wrong direction on this, I have tried some variations of what you just suggested and had no luck with them yesterday. I am gussing it should be this(you left off the qryGetInfo.FormFieldName): CFSET

RE: Structures and SetVariable() function

2001-11-01 Thread Raymond Camden
ally it is. - Yoda -Original Message- From: Aaron Rouse [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 9:32 AM To: CF-Talk Subject: RE: Structures and SetVariable() function Maybe because I have been focusing in the wrong direction on this, I have tried some

RE: Structures and SetVariable() function

2001-11-01 Thread Aaron Rouse
:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 9:32 AM To: CF-Talk Subject: RE: Structures and SetVariable() function Maybe because I have been focusing in the wrong direction on this, I have tried some variations of what you just suggested and had no luck with them

Re: Structures and SetVariable() function

2001-11-01 Thread Don Vawter
The cf parser always has trouble when you have arrays of structs in my experience. In a worst case scenario you can always use cfset evaluate( both sides of the expression) (trick i picked up from early spectra code) but Raymonds solution is much better in this case. - Original Message

RE: Structures and SetVariable() function

2001-11-01 Thread Raymond Camden
From: Don Vawter [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 11:18 AM To: CF-Talk Subject: Re: Structures and SetVariable() function The cf parser always has trouble when you have arrays of structs in my experience. In a worst case scenario you can always use cfset

Re: Structures and SetVariable() function

2001-11-01 Thread Aaron Rouse
Actually, I tried Evaluate in several formats before emailing the list, but thanks for the tip. Snipe - CF_BotMaster Network=EFNet Channel=ColdFusion On Thu, 1 Nov 2001, Don Vawter wrote: The cf parser always has trouble when you have arrays of structs in my experience. In a worst case

Re: Structures and SetVariable() function

2001-11-01 Thread Don Vawter
AM Subject: RE: Structures and SetVariable() function From: Don Vawter [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 11:18 AM To: CF-Talk Subject: Re: Structures and SetVariable() function The cf parser always has trouble when you have arrays of structs in my

RE: Structures and SetVariable() function

2001-11-01 Thread Raymond Camden
is the Force, and a powerful ally it is. - Yoda -Original Message- From: Don Vawter [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 11:32 AM To: CF-Talk Subject: Re: Structures and SetVariable() function I don't use it either Raymond unless everything else I try fails. You

RE: Structures

2001-08-23 Thread Brent Goldman
Hi, Structures can be global or on a client/session basis, depending on what scope they are put in to. Structures in the APPLICATION or SERVER scopes are global, while structures in other scopes on per request/client. -Brent -Original Message- From: Tilbrook, Peter [mailto:[EMAIL

RE: Structures

2001-08-22 Thread Dave Watts
Can structures be utilised on a per client/session basis or are they global? Structures are like any other variable; you can store them in whatever scope you like, with the exception of the Client and Cookie scopes, which can only contain strings. You can even work around that in some cases by

RE: Structures can't use integers as keys - why?

2001-02-13 Thread DeVoil, Nick
You can certainly do this if you NumberFormat() the integer. Actually I thought it was possible even without doing that. After all an integer is a string in CF. Nick ** Information in this email is confidential and may be

RE: Structures can't use integers as keys - why?

2001-02-13 Thread Simon Horwith
By it's simplest definition, a structure keyname is a variable name. The same rules apply to keynames that apply to variable names, and for the same reasons. ~Simon Simon Horwith Allaire Certified ColdFusion Instructor Certified ColdFusion Developer Fig Leaf Software 1400 16th St NW, #

RE: Structures can't use integers as keys - why?

2001-02-13 Thread DeVoil, Nick
-Original Message- From: Simon Horwith [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 4:27 PM To: CF-Talk Subject: RE: Structures can't use integers as keys - why? By it's simplest definition, a structure keyname is a variable name. The same rules apply to keynames that apply to

Re: Structures can't use integers as keys - why?

2001-02-13 Thread Scott Weikert
I use integers as structure keys all the time. But the code below... I don't know that you can use integers as CF variable names... and why would you want a key of "001" instead of just "1"? - Original Message - From: "DeVoil, Nick" [EMAIL PROTECTED] Am I missing something here? Try

RE: Structures can't use integers as keys - why?

2001-02-13 Thread Park, Simon
I ran into the error with using numbers as keys in structures a while ago and I worked around it by concatenating letters with the number. Now when I create structures with the numbers as keys, it works fine. Must have been something else... Sorry to bother folks and waste bandwidth. Simon Park

RE: Structures

2001-01-26 Thread Russel Madere
No. I have tried many times. I wish it were. Russel Russel Madere, Jr. Senior Web Developer ICQ: 5446158 http://www.TurboSquid.com Some days you eat the bear; some days the bear eats you.

RE: Structures

2001-01-26 Thread Evan Lavidor
But you can set a variable scoped structure: cfset variables.stName = StructNew() Evan -Original Message- From: Russel Madere [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 2:00 PM To: CF-Talk Subject: RE: Structures No. I have tried many times. I wish it were

Re: Structures?????

2000-12-20 Thread jeffc
ct Country/option CFLOOP INDEX="Counter" FROM=1 TO="#Total_Records#" CFOUTPUT option value="#session.countries[Counter][1]#"#session.countries[Counter][2]#/opt ion /CFOUTPUT /CFLOOP /select ----- Original Message - From: [EMAIL PROTECTED] To: &q

RE: Structures?????

2000-12-15 Thread mherbene
You're overwriting the same structure with each row. Try this: cfquery name="thequery" datasource="datasource" select * from ads /cfquery Cfset stads = structnew() cfoutput query="thequery" cfset structinsert(stads, thequery.adid, structnew()) Cfset

RE: Structures?????

2000-12-15 Thread Stolpner, Richard J
Jeff Try this - the variable "stads" needs to be an array, then each element in that array is set up as a structure. I believe the way you had it set up, the structure was simply overwriting itself for each iteration of the loop. Obviously, I can't test this against your data, but this

Re: Structures?????

2000-12-15 Thread Jon Hall
Try searching Allaires tag gallery for the QueryToStruct tag :-) jon - Original Message - From: [EMAIL PROTECTED] To: "CF-Talk" [EMAIL PROTECTED] Sent: Thursday, December 14, 2000 3:54 PM Subject: Structures? I'm getting frustrated with this. I want to build a structure from a

Re: Structures?????

2000-12-14 Thread Scott Weikert
Try this... I'm using your "adID" as the key to each structure row... cfquery name="thequery" datasource="datasource" select * from ads /cfquery cfscript stads = StructNew(); for (x = 1; x LTE thequery.recordcount; x = x + 1) { curkey = thequery.adID[x];

RE: Structures?????

2000-12-14 Thread Andres
apparently you do not need the first set of struct ure definitions... i took your code and modified to work with a table i had... worked just fine... here's the code... cfquery name="thequery" datasource="facilitador" dbtype="ODBC" username="sa" password="" select * from courses/cfquery

RE: Structures?????

2000-12-14 Thread Andres
never mid the comment last response i made... i found a problem... still working on it! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 14, 2000 3:55 PM To: CF-Talk Subject: Structures? I'm getting frustrated with this. I want to build

RE: structures always serialized to WDDX the same way?

2000-12-08 Thread Bryan Love
cut and paste this wherever you can run it.. cfset struct1 = structNew() cfset struct2 = structNew() cfset struct1.name = "hi" cfset struct1.address = "he" cfset struct1.phone = "123" cfset struct2.phone = "123" cfset struct2.address = "he" cfset struct2.name = "hi" cfwddx action="CFML2WDDX"

Re: Structures: Where is data kept

2000-11-25 Thread Michael She
I believe you have the option of storing session variables in the registry (not sure where) or in a specific datasource. At 09:47 AM 11/25/00 -0500, you wrote: Once a structure has been created and populated, where is the data kept? I can't find it in the registry anywhere but it persists

RE: Structures: Where is data kept

2000-11-25 Thread James McCullough
, November 25, 2000 9:54 AM To: CF-Talk Subject: Re: Structures: Where is data kept I believe you have the option of storing session variables in the registry (not sure where) or in a specific datasource. At 09:47 AM 11/25/00 -0500, you wrote: Once a structure has been created and populated

RE: Structures: Where is data kept

2000-11-25 Thread Bill Killillay
Session variables are stored in client side cookies and/or server memory. They DO NOT get stored in the registry. The variables that get stored in the registry are Client variables. There is a BIG difference in the two. For example you cant story a structure in a Client variable with out

RE: Structures: Where is data kept

2000-11-25 Thread Dave Watts
Session variables are stored in client side cookies and/or server memory. They DO NOT get stored in the registry. The variables that get stored in the registry are Client variables. There is a BIG difference in the two. For example you cant story a structure in a Client variable with

RE: Structures: Where is data kept

2000-11-25 Thread Bill Killillay
Then how would the persist across the reboots? -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 25, 2000 1:34 PM To: CF-Talk Cc: '[EMAIL PROTECTED]' Subject: RE: Structures: Where is data kept Session variables are stored in client side

RE: Structures: Where is data kept

2000-11-25 Thread Dave Watts
Session variables are NOT stored in client-side cookies. They're always stored in memory. What is stored in cookies are the two tokens CF uses to associate a user's browser with those variables stored in memory. Then how would the persist across the reboots? They don't. If you

RE: Structures: Where is data kept

2000-11-25 Thread Nick McClure
They don't. At 01:35 PM 11/25/2000 -0500, you wrote: Then how would the persist across the reboots? -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 25, 2000 1:34 PM To: CF-Talk Cc: '[EMAIL PROTECTED]' Subject: RE: Structures: Where

Re: Structures: Where is data kept

2000-11-25 Thread Bill Davidson
of the browser? Just a thought (or two..) -Bill /intraget - Original Message - From: Bill Killillay [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Saturday, November 25, 2000 4:26 PM Subject: RE: Structures: Where is data kept You know they don't and I know they don't, but earlier

RE: Structures

2000-11-20 Thread Phoeun Pha
I recommend Assigning those orders into an array, or query variable -Original Message- From: Greg Wolfinger [mailto:[EMAIL PROTECTED]] Sent: Monday, November 20, 2000 10:33 PM To: CF-Talk Subject: Structures This is a multi-part message in MIME format.

RE: Structures

2000-10-08 Thread Warrick, Mark
I've already done this. I use a database to store the domain names. Check out http://www.fusioneers.com If you're interested, become a partner of Fusioneers.com and then email me directly. ---mark -- Mark Warrick Phone: (714)

  1   2   >