My question is; will it be more beneficial to store this structure as XML first and create the structure from the XML file when required?
It depends... If you want to create a tool to help you manage the data then, yes, XML will be easier (and it's easy enough to load the XML file, convert it to a struct and cache it in application scope at startup).
// create field name firstName = structNew();
You use "variables." elsewhere - why not here?
structInsert(variables.firstName, "columnName", "firstName"); structInsert(variables.firstName, "dataType", "varchar");
Why not the simpler form:
variables.firstName.columnName = "firstName";
variables.firstName.dataType = "varchar";
...Sean A Corfield -- http://www.corfield.org/blog/
"I have always wished that my computer would be as easy to use as my telephone. My wish has come true - I no longer know how to use my telephone."
-- Bjarne Stroustrup
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
