I was checking out various folderitem properties:
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/=
objects/folderitem/folderitem.asp

and found that the following code in a .vbs file:

'-----------------------------------------
Set oAppShell =3D CreateObject("Shell.Application")

set oFolder =3D oAppShell.BrowseForFolder(0, "Choose a Folder", 0)

msgbox "IsBrowsable =3D " & oFolder.Self.IsBrowsable,,oFolder.Self.Name

'For each oItem in oFolder.Items
' With oItem
' If .IsFolder then msgbox "IsBrowsable =3D " & .IsBrowsable,,.Name
' end with
'Next
'-----------------------------------------

will always show "False"???

Can anyone explain this to me?

Thank you,=20
Keith

Re: When is 'IsBrowseable' True? by Michael

Michael
Sun Mar 13 16:09:49 CST 2005

Keith Miller wrote:
> ...snip...
>
> msgbox "IsBrowsable = " & oFolder.Self.IsBrowsable,,oFolder.Self.Name
>
> 'For each oItem in oFolder.Items
> ' With oItem
> ' If .IsFolder then msgbox "IsBrowsable = " & .IsBrowsable,,.Name
> ' end with
> 'Next
> '-----------------------------------------
>
> will always show "False"???
>
> Can anyone explain this to me?


Nope...

I can't even explain what the property is even supposed to represent. What
does it mean that 'an item can be browsed"?

The docs certainly don't make that clear, nor do the examples, all of which
are *supposed* to be functions that return a boolean value, but none of
which actually return *any* value (hint: what ever hapens to the bReturn
local variable?)...

IsBrowsable Property (FolderItem) (Windows Explorer and Controls)
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/objects/folderitem/isbrowsable.asp?frame=true

--
Michael Harris
Microsoft MVP Scripting
http://maps.google.com/maps?q=Sammamish%20WA%20US



Re: When is 'IsBrowseable' True? by Keith

Keith
Sun Mar 13 18:09:37 CST 2005

Thanks Michael. Nice to know I'm not alone in my confusion :)

Keith

"Michael Harris (MVP)" <mikhar at mvps dot org> wrote in message =
news:OvfWalBKFHA.1392@TK2MSFTNGP10.phx.gbl...
> Keith Miller wrote:
> > ...snip...
> >
> > msgbox "IsBrowsable =3D " & =
oFolder.Self.IsBrowsable,,oFolder.Self.Name
> >
> > 'For each oItem in oFolder.Items
> > ' With oItem
> > ' If .IsFolder then msgbox "IsBrowsable =3D " & .IsBrowsable,,.Name
> > ' end with
> > 'Next
> > '-----------------------------------------
> >
> > will always show "False"???
> >
> > Can anyone explain this to me?
>=20
>=20
> Nope...
>=20
> I can't even explain what the property is even supposed to represent. =
What=20
> does it mean that 'an item can be browsed"?
>=20
> The docs certainly don't make that clear, nor do the examples, all of =
which=20
> are *supposed* to be functions that return a boolean value, but none =
of=20
> which actually return *any* value (hint: what ever hapens to the =
bReturn=20
> local variable?)...
>=20
> IsBrowsable Property (FolderItem) (Windows Explorer and Controls)
> =
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/=
objects/folderitem/isbrowsable.asp?frame=3Dtrue
>=20
> --=20
> Michael Harris
> Microsoft MVP Scripting
> http://maps.google.com/maps?q=3DSammamish%20WA%20US=20
>=20
>

Re: When is 'IsBrowseable' True? by Brian

Brian
Sun Mar 13 19:00:25 CST 2005

Keith Miller wrote:
> Thanks Michael. Nice to know I'm not alone in my confusion :)

No - you're not alone at all.

Re: When is 'IsBrowseable' True? by Christoph

Christoph
Wed Mar 16 07:05:26 CST 2005

14.03.2005 01:09, Keith Miller schrieb:
> Thanks Michael. Nice to know I'm not alone in my confusion :)

There is actually *one* ShellSpecialFolder, which returns true
for 'IsBrowsable'. This SSF is InternetExplorer (CSIDL_INTERNET = 1)

Set objShell = CreateObject("Shell.Application")
Set objFolder2 = objShell.NameSpace(1)
Set objFolderItem = objFolder2.Self
Msgbox objFolder2.Title & ".IsBrowsable? -> " & objFolderItem.IsBrowsable


So IsBrowsable could mean something like: has no FolderItems, Is
not FileSystem, but can be displayed by Shell.Explorer-Object.


--
Gruesse, Christoph

Rio Riay Riayo - Gordon Sumner, 1979

Re: When is 'IsBrowseable' True? by Keith

Keith
Wed Mar 16 09:38:05 CST 2005


"Christoph Basedau" <e_tonne@hotmail.com> wrote in message =
news:42382f1d$0$1110$9b4e6d93@newsread2.arcor-online.net...
>=20
> There is actually *one* ShellSpecialFolder, which returns true
> for 'IsBrowsable'. This SSF is InternetExplorer (CSIDL_INTERNET =3D 1)
>=20
> Set objShell =3D CreateObject("Shell.Application")
> Set objFolder2 =3D objShell.NameSpace(1)
> Set objFolderItem =3D objFolder2.Self
> Msgbox objFolder2.Title & ".IsBrowsable? -> " & =
objFolderItem.IsBrowsable
>=20
>=20
> So IsBrowsable could mean something like: has no FolderItems, Is
> not FileSystem, but can be displayed by Shell.Explorer-Object.
>=20

Thanks for the info Christoph!

Keith