OK, now I am totally confused. Please walk me through this... I have a CFC called FOO with a single method called Throw Exception:
FOO: Function ThrowException throw(message="Test one"); what object am I instantiating within foo? If I don't use scripting, the equivilent <CFTHROW> works perfectly. Andy -----Original Message----- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:01 PM To: CF-Talk Subject: RE: Can I Throw within <cfscript>??? You have to create a reference to the cfc before you can call a function from the cfc in your cfml. Example: Test.cfm <cfscript> myCFC=CreateObject('component','mycfcfilename'); myCFC.throw(message="I've been thrown to the wall, ouch!"); </cfscript> -----Original Message----- From: Andy Ousterhout [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:46 PM To: CF-Talk Subject: RE: Can I Throw within <cfscript>??? Huh? -----Original Message----- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 6:45 PM To: CF-Talk Subject: RE: Can I Throw within <cfscript>??? Andy you still have to init your library. -----Original Message----- From: Andy Ousterhout [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:29 PM To: CF-Talk Subject: RE: Can I Throw within <cfscript>??? Create a complete page with only the following: <cfscript> throw(message="Test one"); </cfscript> When you execute it, "Variable THROW is undefined" is thrown. Andy -----Original Message----- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 5:13 PM To: CF-Talk Subject: RE: Can I Throw within <cfscript>??? foo(x=y z=a) is not valid in cfml. The example in the link below does not do that. You should instead do: foo(y,a) or foo(x=y,z=a) ======================================================================== === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Andy Ousterhout [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 16, 2003 4:03 PM > To: CF-Talk > Subject: RE: Can I Throw within <cfscript>??? > > > Raymond, > > CFFunction works, what doesn't is: > > <cfscript> > throw(type="ValidationError" Message="This just wont work"); > ....... > > Andy > > -----Original Message----- > From: Raymond Camden [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 16, 2003 4:50 PM > To: CF-Talk > Subject: RE: Can I Throw within <cfscript>??? > > > Why not? Every OS running CFMX will support cffunction. > > ============================================================== > ========== > === > Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc > (www.mindseye.com) > Member of Team Macromedia > (http://www.macromedia.com/go/teammacromedia) > > Email : > [EMAIL PROTECTED] > Blog : www.camdenfamily.com/morpheus/blog > Yahoo IM : morpheus > > "My ally is the Force, and a powerful ally it is." - Yoda > > > -----Original Message----- > > From: Andy Ousterhout [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, September 16, 2003 3:40 PM > > To: CF-Talk > > Subject: RE: Can I Throw within <cfscript>??? > > > > > > This won't work on my system running under NT & MX. > > > > Andy > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, September 16, 2003 3:53 PM > > To: CF-Talk > > Subject: RE: Can I Throw within <cfscript>??? > > > > > > no need for wrapper...throw(); > > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg145231.html > for an example > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com