RE: Can I Throw within cfscript???

2003-09-17 Thread Adam Wayne Lehman
-Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 10:18 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? You _have_ to use cfthrow within test to throw within test. -Original Message- From: Andy Ousterhout [mailto:[EMAIL

RE: Can I Throw within cfscript???

2003-09-17 Thread Bryan F. Hogan
Adam, you can still do a try/catch inside the throw function. By using writeoutput(excp.message); -Original Message- From: Adam Wayne Lehman [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 9:05 AM To: CF-Talk Subject: RE: Can I Throw within cfscript??? Right. This is one

Re: Can I Throw within cfscript???

2003-09-17 Thread Thomas Chiverton
On Wednesday 17 Sep 2003 14:04 pm, Adam Wayne Lehman wrote: Why oh why do we have try/catch but no throw? It's like we got loops without a break command. No point. You can just an an extra looping condition, and change the value of that flag if you need to break out. -- Tom Chiverton (sorry

RE: Can I Throw within cfscript???

2003-09-17 Thread Adam Wayne Lehman
- From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 11:03 AM To: CF-Talk Subject: Re: Can I Throw within cfscript??? On Wednesday 17 Sep 2003 14:04 pm, Adam Wayne Lehman wrote: Why oh why do we have try/catch but no throw? It's like we got loops without a break

RE: Can I Throw within cfscript???

2003-09-17 Thread Barney Boisvert
Health Distance Education Division -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 10:18 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? You _have_ to use cfthrow within test to throw within test. -Original Message

Re: Can I Throw within cfscript???

2003-09-17 Thread Sean A Corfield
On Wednesday, Sep 17, 2003, at 08:20 US/Pacific, Adam Wayne Lehman wrote: Thanks Tom. There is actually a 'break' command in cfscript, I was just using it as an example to illustrate operators and commands that go hand in hand. There are a lot of folks who think that using 'break' in a loop

Can I Throw within cfscript???

2003-09-16 Thread Andy Ousterhout
Do I have to go out of the script language to throw and error or is there a way to do it within cf-script(without separate function call that throws error)? Andy ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4

RE: Can I Throw within cfscript???

2003-09-16 Thread Shawn Grover
You can write a wrapper function for CFTHROW then call that function from within your CFScript block... -Original Message- From: Andy Ousterhout [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 2:43 PM To: CF-Talk Subject: Can I Throw within cfscript??? Do I have to go out

Re: Can I Throw within cfscript???

2003-09-16 Thread Paul Hastings
You can write a wrapper function for CFTHROW then call that function from within your CFScript block... yes, but you have to manage most of the error details yourself. cfscript really needs a throw(). ~| Archives:

RE: Can I Throw within cfscript???

2003-09-16 Thread Douglas.Knudsen
no need for wrapper...throw(); http://www.mail-archive.com/[EMAIL PROTECTED]/msg145231.html for an example doug -Original Message- From: Shawn Grover [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 4:48 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? You can

RE: Can I Throw within cfscript???

2003-09-16 Thread Andy Ousterhout
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

RE: Can I Throw within cfscript???

2003-09-16 Thread Raymond Camden
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

RE: Can I Throw within cfscript???

2003-09-16 Thread Andy Ousterhout
: 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

RE: Can I Throw within cfscript???

2003-09-16 Thread Raymond Camden
] 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

RE: Can I Throw within cfscript???

2003-09-16 Thread Andy Ousterhout
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

RE: Can I Throw within cfscript???

2003-09-16 Thread Bryan F. Hogan
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

RE: Can I Throw within cfscript???

2003-09-16 Thread Andy Ousterhout
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

RE: Can I Throw within cfscript???

2003-09-16 Thread Bryan F. Hogan
: 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

RE: Can I Throw within cfscript???

2003-09-16 Thread Andy Ousterhout
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

RE: Can I Throw within cfscript???

2003-09-16 Thread Bryan F. Hogan
, 2003 7:58 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? 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

RE: Can I Throw within cfscript???

2003-09-16 Thread Bryan F. Hogan
throwExceptionReturn /cffunction -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 8:12 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? First do you have a cfc file that has your function throw() in it? And now your trying to call

RE: Can I Throw within cfscript???

2003-09-16 Thread Andy Ousterhout
Correct. Before, I was trying to simplify the problem to what I thought was the root. -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:12 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? First do you have a cfc file

RE: Can I Throw within cfscript???

2003-09-16 Thread Bryan F. Hogan
PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? Correct. Before, I was trying to simplify the problem to what I thought was the root. -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:12 PM To: CF-Talk Subject: RE: Can I

RE: Can I Throw within cfscript???

2003-09-16 Thread Andy Ousterhout
, September 16, 2003 8:45 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? Correct. Before, I was trying to simplify the problem to what I thought was the root. -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 7:12 PM To: CF-Talk

RE: Can I Throw within cfscript???

2003-09-16 Thread Bryan F. Hogan
Ok, I need some more information. Please post an example of your cfc and your cfml page -Original Message- From: Andy Ousterhout [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 9:00 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? Not what I am looking to do. I

RE: Can I Throw within cfscript???

2003-09-16 Thread Andy Ousterhout
Andy -Original Message- From: Bryan F. Hogan [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 8:18 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? Ok, I need some more information. Please post an example of your cfc and your cfml page -Original Message- From

RE: Can I Throw within cfscript???

2003-09-16 Thread Barney Boisvert
-Original Message- From: Andy Ousterhout [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 6:34 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? Bryan, Here is sample code. First, observe that the two catch blocks behave differently. Second, can you replace

RE: Can I Throw within cfscript???

2003-09-16 Thread Bryan F. Hogan
[mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 9:34 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? Bryan, Here is sample code. First, observe that the two catch blocks behave differently. Second, can you replace the throw in Test with a script statement without changing

Try And Catch work differently then CFTRYCFCATCH (was RE: Can I Throw within cfscript???)

2003-09-16 Thread Andy Ousterhout
-Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 8:49 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? You can't. You have to define a throw() function elsewhere that wraps the CFTHROW tag, and include the definition before it's

RE: Try And Catch work differently then CFTRYCFCATCH (was RE: Can I Throw within cfscript???)

2003-09-16 Thread Bryan F. Hogan
PM To: CF-Talk Subject: Try And Catch work differently then CFTRYCFCATCH (was RE: Can I Throw within cfscript???) Barney, Interestingly, as I noted in my previous email, TRY's and Catchs under script operate differently. So this is also a problem. For example, cut and past the following and run

RE: Can I Throw within cfscript???

2003-09-16 Thread Andy Ousterhout
: Andy Ousterhout [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 9:34 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? Bryan, Here is sample code. First, observe that the two catch blocks behave differently. Second, can you replace the throw in Test with a script statement

RE: Can I Throw within cfscript???

2003-09-16 Thread Bryan F. Hogan
-Original Message- From: Andy Ousterhout [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 10:03 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? Bryan, This is not the same code. All you are doing is returning from a function call. You are NOT throwing an exception

RE: Can I Throw within cfscript???

2003-09-16 Thread Bryan F. Hogan
You _have_ to use cfthrow within test to throw within test. -Original Message- From: Andy Ousterhout [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 10:03 PM To: CF-Talk Subject: RE: Can I Throw within cfscript??? Bryan, This is not the same code. All you are doing

RE: Can I Throw within cfscript???

2003-09-16 Thread Bryan F. Hogan
You can not throw a custom throw within the custom throw, you will have to use cfthrow within your custom throw function -Original Message- From: Andy Ousterhout [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 10:03 PM To: CF-Talk Subject: RE: Can I Throw within cfscript

RE: Try And Catch work differently then CFTRYCFCATCH (was RE: Can I Throw within cfscript???)

2003-09-16 Thread Andy Ousterhout
9:54 PM To: CF-Talk Subject: Try And Catch work differently then CFTRYCFCATCH (was RE: Can I Throw within cfscript???) Barney, Interestingly, as I noted in my previous email, TRY's and Catchs under script operate differently. So this is also a problem. For example, cut and past the following