[RESOLVED] Break down a Path String...
What's the simplest way to break down a String with special characters in it?
My String will be something like this...
Text1.Text= "C:\Folder1\SubFolder1\Pic.jpg"
I want to break it down to:
Text2.Text = "C:"
Text3.Text = "Folder1"
Text4.Text = "SubFolder1"
Text5.Text = "Pic.jpg"
Thanks
Re: Break down a Path String...
vb Code:
Dim Path As String
Dim SPath() As String
Dim SeparatedPath As String
Path = "C:\Folder1\SubFolder1\Pic.jpg"
SPath() = Split(Path, "\", -1, vbTextCompare)
For i = 0 To UBound(SPath)
SeparatedPath = SPath(i)
Next
Try This
Re: Break down a Path String...