Function isVisible(Extends f As FolderItem) As Boolean

Implementation note: Even if I am running on Windows or Mac Classic, I
generally find it useful to check for Mac OS X style invisibility as
described in this thread. In the mixed-platform networks that are my
usual haunts, a filename that starts with a period is very likely to
be a remnant of Mac OS X access to that network folder, and not
something I want to show in the user interface of whatever tool I am
writing.

So instead of the IsVisible function above, my function looks like this:

 Function IsHidden(extends f as folderItem, CrossPlatform as boolean
= true) as boolean

Inside this function, I don't use platform-specific compilation;
instead I check the CrossPlatform argument to decide which tests to
perform. This allows me to offer it as a runtime option for the user,
appropriate.

(This function is part of the FolderItemHelpers module in UTool:

 http://ljensen.com/utool

I chose IsHidden instead of IsVisible to make the function name more
distinct from RB's Visible property. That might have been a mistake,
because people who search for "Visible" will tend to find "IsVisible",
which is good.)

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