that's very cute! I've just been lazy by moving the choice of method
back further to an "if" or something...thanx for the tip, Joe.
any other reasons for cfinvoke?
On 8/26/05, Joe Rinehart <[EMAIL PROTECTED]> wrote:
> > One reason to do <cfinvoke> over createobject is you can dynamically
> > call different methods. I do not think you can do this with
> > createobject.
>
> Actually, you can, but it requires using both. CFInvoke allows a
> component instance for the "component" attribute. This allows you to
> dynamically invoke methods on an instance of a stateful component:
>
> <cfset someinstance = createObject("component", "someCFC").init() />
>
> <cfinvoke component="#someinstance#" method="#somemethod#" variable="result">
> <cfinvoke component="#someinstance#" method="#someOtherMethod#"
> variable="result">
>
> -Joe
>
> --
> Get Glued!
> The Model-Glue ColdFusion Framework
> http://www.model-glue.com
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the
> email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> (www.cfxhosting.com).
>
> CFCDev is supported by New Atlanta, makers of BlueDragon
> http://www.newatlanta.com/products/bluedragon/index.cfm
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
>
>
>
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]