realbasic-nug
[Top] [All Lists]

Re: FolderItem.Length Feature Request

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: FolderItem.Length Feature Request
From: Norman Palardy <npalardy at great-white-software dot com>
Date: Thu, 30 Jun 2005 09:31:07 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <47121EA3-985C-4469-94B3-E78A734698C6 at texastowers dot com>

On Jun 30, 2005, at 9:11 AM, Matthew Williamson wrote:

Add yourself, if you'd like folderItem.length to return a double, so it will correctly return the size of a file larger than 2,147,483,648 bytes.

<http://www.realsoftware.com/feedback/viewreport.php?reportid=nfnpgxvc>

I'd really like a long integer (64 bit) so it's absolutely precise. Comparing doubles or using a double in a loop like the following may not be reliable with very large files.

        dim fileSize as double
        dim i as double

        fileSize = f.length

        for i = 1 to fileSize

                .. do something to every byte ..
        next

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

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

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