How about...

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

<cfif success>
        ....Display success message...
</cfif>

> 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>
> 

------------------------------------------------------------------------------
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