Why does this work? Variables and structure names have never been able
to start with number before. Is CF looking at the number and making
foo an array or what?
I don't have an MX box handy right now or I would test it...

-- 
 jon
 mailto:[EMAIL PROTECTED]

Wednesday, September 18, 2002, 10:50:58 AM, you wrote:
BF> <cfset foo.1 ="rar">
BF> <cfoutput>#foo.1#</cfoutput>

BF> The same code breaks CF5.  It's cool that it works on CFMX.  I haven't had a
BF> chance to use MX yet, but it sounds like the parser is a little more
BF> forgiving.
  
BF> Thanks for the correct syntax (and also from the earlier post from Raymond)!

BF> -----Original Message-----
BF> From: Thomas Chiverton [mailto:[EMAIL PROTECTED]]
BF> Sent: Wednesday, September 18, 2002 7:41 AM
BF> To: CF-Talk
BF> Subject: RE: Using array syntax with a query


>> The
>> variable foo.1 is illegal in ColdFusion. 

BF> <cfset foo.1 ="rar">
BF> <cfoutput>#foo.1#</cfoutput>

BF> Works fine here on MX.

BF> The syntax you want is like qQuery.columname[index] i.e. qList.1[1]

BF> Thomas Chiverton




BF> 
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to