Hi there folks! I am working on a game for the classroom. I have a pathway and a filename, and I just need the pathway from it. I know about using Ubound to split the path and filename... like this...
VB Code:
Dim strPath as string Dim strFile as string Dim UB as string strPath = LBLPath.Caption strFile = Split(strPath, "") UB = UBound(strFile) MsgBox strFile(UB) End Sub
Now that will def give me the filename, but what I want is the path for the file. Is there a different way to split?Thanks!!




Thanks!!
Reply With Quote