or "java.util.LinkedHashMap"
 
Example:
 
<cfscript>
function linkedStruct() {
        return createObject('java','java.util.LinkedHashMap').init();
}
s=linkedStruct();
s.b=1;
s.a=2;
</cfscript>
<cfloop collection="#s#" item="key">
        <cfoutput>#key#<br></cfoutput>
</cfloop>
...
output:
b
a
 
 
--
 
Harry Klein | Konzeption und Entwicklung
CONTENS Software GmbH
Oettingenstr. 25 | 80538 M�nchen
Fon: +49 (0)89 5199 69-0 | Fax: +49 (0)89 5199 69-78
mailto:[EMAIL PROTECTED] | http://www.contens.de

****************************
Besuchen Sie CONTENS auf der CeBIT 2005
in Hannover in Halle 3 am Stand E08

CONTENS pr�sentiert die neue Version 3.0

Vereinbaren Sie am besten schon heute
Ihren Termin unter http://www.contens.de/cebit
****************************
-----Original Message-----
From: Aaron Foote [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 1:23 AM
To: [email protected]
Subject: Re: [CFCDev] Using Structures to handle navigation (order problems)

try

java.util.Hashtable

cheers
-- 
Aaron Foote:

Software Engineer and Hosting Support
Telligence Pty Ltd : http://www.telligence.com.au
Incorporating Austiger Hosting: http://www.austiger.com.au
Email: [EMAIL PROTECTED]
Phone: 1300 852 189
Fax: 02 49677266

Telligence: Working with you to succeed online

Barry Beattie wrote:
You might also try using one of Java's ordered collections.
      

interesting. how? like this?


<cfscript>
hash = createObject("java", "java.utils.hashtable");
hash.put( "f", "fred" );
hash.put( "b", "barney");
hash.put( "w", "wilma");

writeOutput(hash.get("b")); // should be "barney"
</cfscript> 

... Uh oh...

Object Instantiation Exception.  
Class not found: java.utils.hashtable  


(disclaimer: java in CF is still new to me)




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of Roland Collins
Sent: Tuesday, 1 March 2005 7:27 AM
To: [email protected]
Subject: RE: [CFCDev] Using Structures to handle navigation (order
problems)

You might also try using one of Java's ordered collections.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf
Of Daniel Short
Sent: Monday, February 28, 2005 2:56 PM
To: [email protected]
Subject: RE: [CFCDev] Using Structures to handle navigation (order
problems)

Yep, I have it all working with a query now. The query remembers the
order
things were added, which is exactly what I'm after. This way the user
can
add navigation items as they please, in the order they please, without
any
problems.

Thanks everyone.

Dan 

  
You can of course order a query, using ORDER BY in the sql. 
If you don't
have a column to sort by already, you can add one to your QueryNew()
function and set the value (perhaps the index of your loop?) with
QuerySetCell()
    



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of
the
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]





----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of
the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
  


---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]

Reply via email to