You seem to be missing something here. Structure's can be nested to the Nth
level:
<cfscript>
access_flags = StructNew();
access_flags["is_superuser"] = StructNew();
access_flags["is_superuser"].default_value = 0;
access_flags["is_superuser"].description = "Is this user an
administrator?";
</cfscript>
etc.. etc..
-----Original Message-----
From: Reuben King [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 20, 2000 2:49 PM
To: [EMAIL PROTECTED]
Subject: What's the use of structures, anyway?
Structures seem totally useless to me. If they were two dimensional,
then I could see definite value. I'd love to see something like:
<cfset access_flags["is_superuser"].default_value="false">
<cfset access_flags["is_superuser"].description="Is this user an
administrator?">
<cfset access_flags["is_superuser"].data_type="boolean">
<cfset access_flags["is_superuser"].user_assignment="true">
<cfset access_flags["access_emps"].default_value="false">
<cfset access_flags["access_emps"].description="Does this user have
access to the employee records?">
<cfset access_flags["access_emps"].data_type="boolean">
<cfset access_flags["access_emps"].user_assignment="true">
.. etc ...
As I understand it right now from reading the CF docs and Forta's books,
structures are nothing at all but a one dimensional shorthand way of
passing around a single row of key/value pairs. Am I correct in this?
I guess I'll just use the QueryNew() function and its relatives..
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.