I hope this is a basic question. Let's say I have a CFC that does all of my email-related functions. One of those methods (for example, insertEmail) needs to call another method (for example, checkEmail) that is part of the same CFC. For instance:
CFCOMPONENT CFFUNCTION NAME = CHECKEMAIL (email address gets passed in as an argument, used to query the database and see if the email address is (a) of valid format (OK, the database isn't required for this) and (b) already exists in the database) CFRETURN SOME SORT OF INDICATOR OR MESSAGE /CFFUNCTION CFFUNCTION NAME = INSERTEMAIL email address gets passed in as an argument. FIRST I want to call the CHECKEMAIL method, then use the value that is returned to either (a) insert the record into the database, or (b) not insert the record into the database. CFRETURN SOME SORT OF MESSAGE /CFFUNCTION /CFCOMPONENT What is the best way to do this? Thanks, Pete ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:216044 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54