|
Well,
If if you do customer = from, I�m sure your code
will work fine.
But as CF works, when you do this, you�re simply
sayng that the variable name "customer" is a pointer to the structure
"form".
Any change made in the customer struct will change
the value of the form, because they�re pointing to the same structure in
memory.
This happens because in cf, structures and queries
acess the data as references, all other variables (like arrays, and simple vars)
access the data by values.
So if, in any case, you change customer.firstname,
as an example:
<cfset customer.firstname =
Trim(customer.firstname)>
You�re actually changing the value of
form.firstname ... and there are cases where you
won�t want to do this.
Hope that helps.
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
