One way is:


<cfloop index="x" from="1" to="#somenumber#">
        <cfloop index="y" from="1" to="#someothernumber#">
                #MM[x][y]#
        </cfloop>
</cfloop>

Steven Semrau
SRA International, Inc.
Senior Member, Professional Staff
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Com:  (703) 805-1095
DSN:  (703) 655-1095


-----Original Message-----
From: Steve Vosloo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 10:37 AM
To: CF-Talk
Subject: RE: Calling variables from within a custom tag


Excellent. Then how do I access MM[1][2] please?



> -----Original Message-----
> From: Raymond Camden [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 24, 2001 3:54 PM
> To: CF-Talk
> Subject: RE: Calling variables from within a custom tag
> 
> 
> Nothing 'magical' is needed to turn an array into app var, you 
> just set it.
> 
> > <cfset MM = ArrayNew(2)>
> > 
> > <cfset MM[1][1] = "1">
> > <cfset MM[1][2] = "Home">
> > <cfset MM[1][3] = "home.gif">               
> > <cfset MM[1][4] = "index.cfm">      
> 
> <CFLOCK SCOPE="Application" TYPE="Exclusive" TIMEOUT=30>
>       <CFSET Application.SuperChicken = MM>
> </CFLOCK>
> 
> =======================================================================
> Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
> 
> Email   : [EMAIL PROTECTED]
> ICQ UIN : 3679482
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> > -----Original Message-----
> > From: Steve Vosloo [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 24, 2001 9:26 AM
> > To: CF-Talk
> > Subject: RE: Calling variables from within a custom tag
> > 
> > 
> > Thanks.
> > 
> > Any idea on how I turn an array into an application variable?
> > 
> > Here is my array:
> > 
> > 
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to