help.....getting directory from dir list control
hi gurus
i have a open file dialog box
in that
how do i get the directory from the dir control
it's tree view
i mean i want to assign the selected directory to a variable
hepl me
[224 byte] By [
sajuars] at [2007-11-19 2:43:36]

# 1 Re: help.....getting directory from dir list control
from a CommonDialog, you get the filename which is path+filename.
You use InstrRev function on the Path+filename to search for last "\".
you use the Left$ function from the beginning of that string to the found "\"
to get the path.
From a dir control, you read the Path property. THat is the path and
directory (=folder) name.
From a custom treeview, you get the node
Node has a text (or was it "value"?) property that is what is
displayed as text...