Re: dynamic path in cfc

2004-06-30 Thread Ben Densmore
Thanks Paul and Barney.

Ben

-Original Message-
From: Paul Kenney [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 11:32 PM
To: CF-Talk
Subject: Re: dynamic path in cfc
Perfectly legal.Go for it.

On Tue, 29 Jun 2004 23:19:19 -0400, Ben Densmore [EMAIL PROTECTED]
wrote:
 
 If I create an instance of a cfc using createObject() can I use an
application variable in the path that points to the cfc or does the path
have to be hard coded?
 
 cfset someObect = createObject(component,
#application.cfcPath#.components) /
 
 Thanks,
 Ben
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: dynamic path in cfc

2004-06-29 Thread Barney Boisvert
You can use a variable to create objects.You can't, however, use a
variable in the type attribute of CFARGUMENT or the returntype attribute of
CFFUNCTION.

Cheers,
barneyb 

 -Original Message-
 From: Ben Densmore [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, June 29, 2004 8:19 PM
 To: CF-Talk
 Subject: dynamic path in cfc
 
 If I create an instance of a cfc using createObject() can I 
 use an application variable in the path that points to the 
 cfc or does the path have to be hard coded? 
 
 cfset someObect = createObject(component, 
 #application.cfcPath#.components) /
 
 Thanks,
 Ben
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: dynamic path in cfc

2004-06-29 Thread Paul Kenney
Perfectly legal.Go for it.

On Tue, 29 Jun 2004 23:19:19 -0400, Ben Densmore [EMAIL PROTECTED] wrote:
 
 If I create an instance of a cfc using createObject() can I use an application variable in the path that points to the cfc or does the path have to be hard coded?
 
 cfset someObect = createObject(component, #application.cfcPath#.components) /
 
 Thanks,
 Ben
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]