I should have also mentioned, I understand the ability to access queries
like structures of arrays, I'm just a little put off by the two examples not
giving back the same result as it does in this example...
<cfscript>
queryName = StructNew();
queryName.ColumnName = ArrayNew(1);
queryName.ColumnName[1] = "First";
queryName.ColumnName[2] = "Second";
queryName.ColumnName[3] = "Third";
</cfscript>
<cfdump var="#queryName["ColumnName"][1]#" />
<cfdump var="#queryName.ColumnName[2]#" />
<cfdump var="#queryName.ColumnName[3]#" />
<cfdump var="#IsArray(queryName["ColumnName"])#" /><!--- Yes --->
<cfdump var="#IsArray(queryName.ColumnName)#" /><!--- Yes --->
Ade
-----Original Message-----
From: Adrian Lynch
To: '[EMAIL PROTECTED]'
Sent: 23/11/03 13:19
Subject: [ cf-dev ] IsArray()
I'm running this on CFMX 6.1
<cfoutput>
#IsArray(queryName["ColumnName"])#<br />
#IsArray(queryName.ColumnName)#
</cfoutput>
and it's returning yes for the first one and no for the second, am I missing
something here?
livedocs says the top one works this way, which is understandable, but
why not the bottom one?
Ade
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]