You can use the structKeyArray() to retrieve all the keys in the struct as an array. Once you have those you can store, order or retrieve them any way you want as it's just an array of 'indexes' into the structure. I had to create my own basic collection (really just a struct with methods to access it similar to the Java Collection object) with an internal sort when adding items. I had to do this b/c the order w/in the standard struct that items are stored and in turn retrieved is not necessarily the order in which stuff was assigned. i.e. I wasn't getting the items out in the same order I put them in which was a bad thing in the situation I handling.

-Jason


Stephen Adams wrote:
Hi,

Is it possible to get a section of a structure, for example can I get the first ten key/value pairs of a structure then the next ten. I trying to page through a structure ten rows at a time.

I was thinking of using StructCount to get a number for the amount of values in the structure then using that some how to step through the structure. Has anyone every done something like this?

Stephen
----------------------------------------------------------
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]

--
Jason Daiger
URL: www.jdaiger.com
EML: [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