jxharding
asked on
Retrieve Folder Title from Full PathString
Good day
i have a drivelistbox,a dirlistbox and a filelistbox.
connected in tree order(if you choose a directory in dirlistbox, all files in that directory will be displayd in filelistbox)
in the end i have a string say FULLPATH
fullpath is for e.g.
C:\MyProgram\MyFolder
what i need is to get only the folder name and not the full path as shown above
so i guess i need some help on a module
which i can send the full path to.
I guess a good idea will be to start from the back till i get a "\"
but im lost on this
i have a drivelistbox,a dirlistbox and a filelistbox.
connected in tree order(if you choose a directory in dirlistbox, all files in that directory will be displayd in filelistbox)
in the end i have a string say FULLPATH
fullpath is for e.g.
C:\MyProgram\MyFolder
what i need is to get only the folder name and not the full path as shown above
so i guess i need some help on a module
which i can send the full path to.
I guess a good idea will be to start from the back till i get a "\"
but im lost on this
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
strFullPath="C:\MyProgram\
msgbox left( strFullPath,instrrev(strFu