A form is a struct....so it should work fine either way
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Paul Giesenhagen
Sent: Tuesday, October 07, 2003 4:43 PM
To: [EMAIL PROTECTED]
Subject: [CFCDev] Code Reuse

Ok, I am really trying to utilize CFC's and utilize their pronounced ability to handle alot of good code reuse.
 
I have a CFC that handles customer information.  And I have two ways that customer information can be populated and manipulated:
 
1) Through a form (form.firstName, form.lastName)
OR
2) Though a struct being passed to the CFC customer.firstName, customer.lastName
 
It is possible (and good practice) to create 1 simple function that can handle both inputs?  How do you decern between the two scopes?
 
Any suggestions and help would be appreciated.
 
Also, are their any good resources out their for code reuse as it pertains to CFC's or even CFMX in general.
 
Paul Giesenhagen
QuillDesign
 
 

Reply via email to