|
Hi Paul,
It is possible and recommended.
In fact, you shoudn�t have FORM or any other scope
favriables inside your cfc, only arguments, thats the best
practice.
Althou you may want to pass and get every argument
independenttly, which seems more flexible and more OO.
As you mnay know, form, as all other scopes, is a
struct.
All you would have to do is duplicate your form
struct and then pass it to the cfc call, something like:
<cfset customer = Duplicate(FORM) >
(you may use StructCopy, but this only duplicates
the first struct 'level' and creates pointers to nested structures,
don�t use customer = form, because this will only reference the form structure
and any change made to the customer struct will change the value of the
form).
Regards,
Marcantonio da Silva
Diretor de Desenvolvimento de Produtos [EMAIL PROTECTED] Navita - http://www.navita.com.br 55 (11) 3365-2173 - (11) 9656-4634
|
- [CFCDev] Code Reuse Paul Giesenhagen
- Re: [CFCDev] Code Reuse Marcantonio Silva
- Re: [CFCDev] Code Reuse Paul Giesenhagen
- Re: [CFCDev] Code Reuse Marcantonio Silva
- RE: [CFCDev] Code Reuse Jeff Britts
- RE: [CFCDev] Code Reuse Dawson, Michael
- Re: [CFCDev] Code Reuse Paul Giesenhagen
- RE: [CFCDev] Code Reuse Dawson, Michael
