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]

Reply via email to