gettingstarted
[Top] [All Lists]

Re: CopyFileTo

To: "Getting Started" <gettingstarted at lists dot realsoftware dot com>
Subject: Re: CopyFileTo
From: "Aaron Ballman" <aaron at realsoftware dot com>
Date: Sun, 30 May 2004 12:44:42 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
List-help: <mailto:gettingstarted-request@lists.realsoftware.com?subject=help>
List-id: Getting Started <gettingstarted.lists.realsoftware.com>
List-post: <mailto:gettingstarted@lists.realsoftware.com>
References: <20040530170007 dot A4ED31FABEC at lists dot realsoftware dot com> <600597A5-B260-11D8-B825-0003933D673A at kellerfarm dot com>
> How would I do error checking?  I don't see any "LastErrorCode"
> properties like there is for the folderitem after using CopyFileTo.
> Does copying using a BinaryStream employ silent errors?

What version of RB are you using?  In 5.5, there is a LastErrorCode property
of the BinaryStream.

In 5.2 and earlier, you can do poor man's error checking.  For example,
check to see if toFile.Length = fromStream.Length, and if toFile.Exists.

HTH!

~Aaron

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>