Steve,

The point is very clear that you need to know the application name to change
it too, and if you don't know then your in trouble!! Either way, its another
solution to using the application name. Because if your like me and I am
looking at doing this, is that if you have many websites and you want to
kill a specific session, your able to by getting a list of the applications
that are running, then delve a little further into and kill the variable or
even add to the variables.

The reason I say this is that in a control panel situation I can add a
variable to the application structure, which can be checked by the
application to see if it exists and holds a particular value, and place a
hold on that website so that I can do maintenance to the website then when I
am finished I can click another button on the control panel and its back
online again.

This is not a shot at you Steve, but I suggested that because others might
not know about it and in this case it wasn't very clear as the reason behind
what it is he wanted to do.

 
Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve Onnis
Sent: Thursday, 31 March 2005 11:51 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: Accessing application vars from a diff Application.

grrrrrrrrr

Just change the name of the application in the application tag


<cffunction name="copyApplication">

        <cfargument name="sourceApplication" type="string" required="Yes" />
        <cfargument name="destinationApplication" type="string"
required="Yes" />

        <cfapplication name="#arguments.sourceApplication#" />
        <cfset source = duplicate(Application)>

        <cfapplication name="#arguments.destinationApplication#" />
        <cfset structAppend(application, source)>


</cffuntion>

<cfset
copyApplication(sourceApplication="blip",destinationApplication="blop")>




---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to