Some code would help greatly! -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ken Dunnington Sent: Tuesday, March 08, 2005 3:03 PM To: [email protected] Subject: [CFCDev] Passing and returning var scoped objects?
I have an odd problem, I'm writing a user management system and in my create() method, I make a call to a function named createAddress() which accepts an address object and returns that object, updated with the new primary key. When I make the call, I get the error 'Variable createAddress is undefined.' The address object is var scoped, and I've tried it without using var with the same result. The strange thing is, all my other DAO's use very similar code without problems. What could cause a function call to return an undefined variable error? Does it have something to do with returning an argument? (I return arguments.address - should I copy this to a locally-scoped variable first, and pass that back after processing?) Any thoughts would be greatly appreciated! Thanks - Ken ---------------------------------------------------------- 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). 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). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
