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
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!
-
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,
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
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
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
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
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
- 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
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.
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?
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.
: 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
13 matches
Mail list logo