On Sep 22, 2006, at 7:22 PM, Craig Hoyt wrote:

Thanks for the reply and thanks for pointing out one more area I didn't know existed. Extends can be very useful but in this case I'm having a hard time seeing where there is an advantage to this over just writing my own from scratch. Seems to me the routine is the same, camping it on an RB existing method just seems a waste of time. Is there a difference between;

        c=f.VisibleCount  // Using Extends
        or
        c=GetVFCount (f) // Method to scan a folder & return visible items

Am I missing something vital with extends or is just to make the code pretty?

It is mostly to make the code look pretty. You can't do anything with extends that you cannot do in a regular method, but it makes it look like the method really belongs to the class (shorter code, and more direct).

I took the second approach before the replies came in. It works for me, all 48 folders! - yeah, that's why I asked if there were any alternatives. Took me longer to change all the lines for .Count than it did to write the method to scan the folders.

Did you know there are at least three ways to set a file to be invisible in OS X? Take a look at this post here:

http://support.realsoftware.com/listarchives/realbasic-nug/ 2004-12/msg00244.html


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

Reply via email to