Re: Throwing error inside a cfscript block.

2005-07-28 Thread Thomas Chiverton
On Wednesday 27 July 2005 18:41, Barney Boisvert wrote: It's really quite horrible how incompatible CFSCRIPT and tags are. no throw in script, no continue in tags, no query or list loop in script, etc. At least throw is one that can be easily worked around. It's easy enough to write a CFC

Throwing error inside a cfscript block.

2005-07-27 Thread Ian Skinner
Is there a way to throw an error from inside a cfscipt block equivalent to cfthrow ...? Or is this one of those errors where one can not use cfscript coding? -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA C code. C code run. Run code run. Please! -

Re: Throwing error inside a cfscript block.

2005-07-27 Thread Barney Boisvert
Write yourself a tag-based UDF named 'throw', and use that from inside CFSCRIPT. It's really quite horrible how incompatible CFSCRIPT and tags are. no throw in script, no continue in tags, no query or list loop in script, etc. At least throw is one that can be easily worked around. cheers,

RE: Throwing error inside a cfscript block.

2005-07-27 Thread Ian Skinner
code. C code run. Run code run. Please! - Cynthia Dunning -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 27, 2005 10:41 AM To: CF-Talk Subject: Re: Throwing error inside a cfscript block. Write yourself a tag-based UDF

Re: Throwing error inside a cfscript block.

2005-07-27 Thread Barney Boisvert
Yep, that'll work just as well. I do it quite often. cheers, barneyb On 7/27/05, Ian Skinner [EMAIL PROTECTED] wrote: And to translate that to a cfc file, it would be a throw function, I presume private, that can then be called. Since my brain is barely turning over today, there is no

Re: Throwing error inside a cfscript block.

2005-07-27 Thread Aaron Rouse
I do this quite often, might go against so sort of official method of designing things but seems to work without any issue. On 7/27/05, Ian Skinner [EMAIL PROTECTED] wrote: And to translate that to a cfc file, it would be a throw function, I presume private, that can then be called. Since

RE: Throwing error inside a cfscript block.

2005-07-27 Thread Gaulin, Mark
Just curious... can a tag-based UDF be defined outside of a CFC? Last time I checked the answer seemed to be no. Thanks Mark -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 27, 2005 1:41 PM To: CF-Talk Subject: Re: Throwing error inside

RE: Throwing error inside a cfscript block.

2005-07-27 Thread Ian Skinner
AM To: CF-Talk Subject: Re: Throwing error inside a cfscript block. Yep, that'll work just as well. I do it quite often. cheers, barneyb On 7/27/05, Ian Skinner [EMAIL PROTECTED] wrote: And to translate that to a cfc file, it would be a throw function, I

Re: Throwing error inside a cfscript block.

2005-07-27 Thread Seth Bienek
- Original Message - Is there a way to throw an error from inside a cfscipt block equivalent to cfthrow ...? Hi Ian, Ray Camden has developed a UDF to allow you to throw exceptions from within cfscript: http://www.cflib.org/udf.cfm/throw Take Care, Seth

Re: Throwing error inside a cfscript block.

2005-07-27 Thread Barney Boisvert
Absolutely. It was added at the same time CFCs were added (CFMX 6.0); before then you only had script-based UDFs. cheers, barneyb On 7/27/05, Gaulin, Mark [EMAIL PROTECTED] wrote: Just curious... can a tag-based UDF be defined outside of a CFC? Last time I checked the answer seemed to be no.

RE: Throwing error inside a cfscript block.

2005-07-27 Thread S . Isaac Dealey
Just curious... can a tag-based UDF be defined outside of a CFC? Last time I checked the answer seemed to be no. Thanks Mark Ever since I've used them. 6.0... may not have been the case during part of the beta. s. isaac dealey 954.522.6080 new epoch : isn't it time for a change?

Re: Throwing error inside a cfscript block.

2005-07-27 Thread Aaron Rouse
Yes but what happens in the beta, stays in the beta. It is kind of like vegas. On 7/27/05, S. Isaac Dealey [EMAIL PROTECTED] wrote: Ever since I've used them. 6.0... may not have been the case during part of the beta.

RE: Throwing error inside a cfscript block.

2005-07-27 Thread Gaulin, Mark
: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 27, 2005 4:30 PM To: CF-Talk Subject: RE: Throwing error inside a cfscript block. Just curious... can a tag-based UDF be defined outside of a CFC? Last time I checked the answer seemed to be no. Thanks Mark Ever since