Thanks
----- Original Message -----
From: Jim Campbell <[EMAIL PROTECTED]>
Date: Thu, 30 Sep 2004 10:30:49 -0500
Subject: Re: try catch
To: CF-Talk <[EMAIL PROTECTED]>
Do you mean something outside of normal code that's specific to a
failure or not? What about this:
<cfset querySuccess = true>
<cftry>
<cfquery...>
blah blah
<cfquery>
<cfcatch...>
<cfset querySuccess = false>
<cfcatch>
</cftry>
<cfif querySuccess>
// query succeeded, do this
<cfelse>
// query failed, do that
</cfif>
//Code not reliant on query
Is that what you're talking about, or would a cfquery.RecordCount option
be acceptable?
- Jim
Phill B wrote:
> If a query doesn't fail, I want to make some thing else happen. What
> would be a good way to do this?
>
> --
> Phillip B.
>________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

