If it doesn't fail, it works.  So if it isn't caught, it succeeded.

<cftry>
        <cffile action="WRITE" ......>
        <!-- if it failed, execution would drop down to the catch blcok -->
        It worked!

        <cfcatch type="Any">
                The file could not be updated. File is locked or read only.
        </cfcatch>
</cftry>

Chris Evans
[EMAIL PROTECTED]
http://www.fuseware.com



-----Original Message-----
From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 29, 2000 12:45 PM
To: CFTalk
Subject: CFTry Question


Hi all,

How do I return a success from CFTry?

I have wrapped cftry around a cfflile call to intercept error messages if
the file can not be updated but I want to return a success message if the
was no errors. Here is what I have:

<cftry>
        <cffile action="WRITE" ......>
        <cfcatch type="Any">
                The file could not be updated. File is locked or read only.
        </cfcatch>
</cftry>

Duane Boudreau
Director, Web Technologies
Ektron, Inc.
http://www.ektron.com
5 Northern Blvd, Suite 6
Amherst, NH 03031
Tel: 603-594-0249
Fax: 603-594-0258
ICQ#: 18024374
Jobs: [EMAIL PROTECTED]

----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to