Le 24 janv. 07 à 21:41 Soir, Lars Jensen a écrit:

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.

That's a great idea.
_______________________________________________
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