Re: How to start browsing at an existing folder location
- From: "Terry Kreft" <dont@xxxxxxxxxxxxx>
- Date: Thu, 7 May 2009 12:16:44 +0100
Look at
http://www.lebans.com/callbackbrowser.htm
--
Terry Kreft
"Simon" <SvanBeekNL@xxxxxxxxxxx> wrote in message
news:4a02bc0a$0$13210$bf4948fe@xxxxxxxxxxxxxxxx
Dear reader,
For browsing to a folder location I use the following code:
Public Function BrowseFolder(szDialogTitle As String) As String
Dim x As Long, bi As BROWSEINFO, dwIList As Long
Dim szPath As String, wPos As Integer
With bi
.hOwner = hWndAccessApp
.lpszTitle = szDialogTitle
.ulFlags = BIF_RETURNONLYFSDIRS
End With
dwIList = SHBrowseForFolder(bi)
szPath = Space$(512)
x = SHGetPathFromIDList(ByVal dwIList, ByVal szPath)
If x Then
wPos = InStr(szPath, Chr(0))
BrowseFolder = Left$(szPath, wPos - 1) & "\"
Else
BrowseFolder = ""
End If
End Function
With this code I always start on the root of the tree.
Is there a possibility to use the function so you start not on the root
but on an existing folder location in the tree?
Thanks for any help.
Kind regards,
Simon
.
- References:
- Prev by Date: Re: re-highlight multiselect list box
- Next by Date: Re: Continual database devolopment
- Previous by thread: How to start browsing at an existing folder location
- Index(es):
Relevant Pages
|
Loading