Once again, Evaluate to the rescue:
#ArrayLen(Evaluate("application.SM & attributes.Num"))#
OR
#ArrayLen(Evaluate("application.SM#attributes.Num#"))#
> I have 3 arrays, which are assigned to the application scope:
>
> <cfset Application.SM1 = SM1>
> <cfset Application.SM2 = SM2>
> <cfset Application.SM3 = SM3>
>
> My custom tag receives a number (1,2 or 3), and with that I reference the
> correct array. I need to dynamically use this number to reference the
> correct array, e.g.
>
> #ArrayLen(application.SM & attributes.Num)#
>
> (The above code does not work.) Any help would be much appreciated!! Thanks
> in advance.
>
> Steve
>
>
> Development Manager
> Vardus Internet Solutions (SA)
>
> Tel: (+27) 21 670 9880
> Fax: (+27) 21 674 4549
>
> Email: [EMAIL PROTECTED]
> Website: www.vardus.com
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists