Mark

I think its this

table.1 is invalid.  You can not name variables or keys of structures with
only numbers or starting with numbers.

you may have to go with something like

<cfset tableCount = 0>

<cfloop query="get_tables">
        <cfset tableCount = tableCount + 1>
        <cfset thisDb.tables["tbl" & tableCount] = StructNew()>
        <cfset thisDb.tables["tbl" & tableCount].tableName = evaluate('tables_in_'
& databaseName)>
</cfloop>

Steve

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mark
Stanton
Sent: Tuesday, March 25, 2003 5:32 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: data structure confusion


I thought structNew was redundant in CFMX and that any this.that syntax
implicitly created a structure?????

I've added <cfset thisDb = StructNew()> and <cfset
"thisDb.tables[#tableCount#]" = StructNew()> but am still getting the same
error.


Cheers

Mark


______________
Mark Stanton
Web Production
Gruden Pty Ltd
Tel: 9956 6388
Mob: 0410 458 201
Fax: 9956 8433
www.gruden.com



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to