Nothing like a query, specifically, but it does have that same sort of hybrid behaviour. Queries are really just a struct of arrays, where a missing array index will be automatically defaulted to 1, which gives them a little bit of quirkyness that a real struct of arrays wouldnt' have. You can also do the special loop types with them, but that's a function of the loop, not the query data structure itself.
For example, you can't do myQuery[3] (unless you've got a column named "3" in there), nor can you do myStruct[3] (unless you've got a key named "3" in there), but you can happiliy do arguments[3] to get the third argument. myQuery["field"] will return the value of the first record's specified field (an implicit "[1]" is tacked on there), myStruct["field"] will return the value of the "field" key, and arguments["field"] will return the value of the "field" argument. So the arguments scope is really it's own complex data type that kind of melds arrays and structs together, and which exists nowhere else in CFML. cheers, barneyb On 6/21/05, Dave Carabetta <[EMAIL PROTECTED]> wrote: > On 6/21/05, Barney Boisvert <[EMAIL PROTECTED]> wrote: > > I think he's talking about the 'arguments' scope in particular, as it > > has weird quirks that aren't exhibited by any other CF scopes (i.e. > > the ability to dereference like an array). StructKeyExists is still > > the proper way to test for an optional argument; in that sense > > treating arguments like a struct is the proper thing to do. Just > > don't necessarily expect it to ALWAYS behave exactly like a "real" > > struct. > > > > So then the arguments scope is sort of like a query (which I know > isn't a scope, per se) where you can sometimes use array notation and > sometimes use structure notation to access its members? > > Just curious. > > Regards, > Dave. -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ---------------------------------------------------------- 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). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
