LOL! Bill, we're also making school admin software and "getClass()" would indeed be a name we'd use. thanx for the preventitive post.
I suspect that it's a java function (hence undocumented as far as CF) but that's just a guess... cheers barry.b > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Bill Rawlinson > Sent: Friday, 24 June 2005 10:09 AM > To: [email protected] > Subject: [CFCDev] Heads UP: getClass UDF name > > > Just to warn you all what might seem an obvious thing but: > > getClass is not a valid UDF name (CF MX 6.1) > > I was working on a system today that dealt with student enrollments. > The studentenrollment.cfc was a composite object of a student, a > class, and some other enrollment specific information (test scores, > etc..). > > Anyway, I wanted to create a method that would return to me the > instance of the class object in the studentenrollment. What better > name that getClass()? > > Well, even though it isn't documented in the MX 6.1 live docs list of > CF functions > (http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functi on.htm#wp3082862) coldfusion returns an error saying it is. I didn't have time to dig into the error at all earlier, Instead I just refactored and changed everything to "course" instead of "class" so I'm not sure exactly what getClass returns (though I would assume it might be something like getMetaData(). So, getClass is an undocumented coldfusion built in function. Don't try to use it as a UDF name (even when you really want to). If someone else gets a chance to see what getClass does I'd love to hear about it. Bill -- [EMAIL PROTECTED] http://blog.rawlinson.us If you want Gmail - just ask. ---------------------------------------------------------- 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). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm 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). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
