Thanks.

Any idea on how I turn an array into an application variable?

Here is my array:

<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">  




> -----Original Message-----
> From: Bob Silverberg [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 24, 2001 2:57 PM
> To: CF-Talk
> Subject: RE: Calling variables from within a custom tag
> 
> 
> Read lock are _not supposed to_ slow your application down.  I've 
> never seen
> any actual numbers on this, but that has been my understanding.  
> Allaire has
> stated that there is very little overhead to read-only locks.
> 
> Bob
> 
> -----Original Message-----
> From: Steve Vosloo [mailto:[EMAIL PROTECTED]]
> Sent: May 24, 2001 8:42 AM
> To: CF-Talk
> Subject: RE: Calling variables from within a custom tag
> 
> 
> If I make it an application variable, I will need locks around every read
> (and there will be many reads) - will this not slow down my pages
> considerably?
> 
> 
> 
> > -----Original Message-----
> > From: Adkins, Randy [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 24, 2001 2:29 PM
> > To: CF-Talk
> > Subject: RE: Calling variables from within a custom tag
> >
> >
> > If you need it in other pages for the GIVEN user
> > you can make is a SESSION variable.
> >
> > If the same data is used for all users and does not
> > change often, you can make is an APPLICATION
> > variable or place the array into a DB and call it.
> >
> >
> > -----Original Message-----
> > From: Steve Vosloo [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 24, 2001 8:14 AM
> > To: CF-Talk
> > Subject: Calling variables from within a custom tag
> >
> >
> > I need to load a massive array into memory - I was going to do 
> this in the
> > application.cfm, but I need the data in a custom tag. Is there 
> any way of
> > accessing this info from within a CT?
> >
> > My other option would be to put all this info into an include,
> > which I call
> > from the CT. Can I cache an include file?
> >
> > Thanks,
> > 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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to