Isolate from string (1 Viewer)

Catalina

Registered User.
Local time
Today, 13:31
Joined
Feb 9, 2005
Messages
462
D:\Databases\MovieDB\Images\MyMovie.jpg

D:\Databases\MovieDB\Test\Images\AnotherMovie.jpg

I'm trying to isolate the part in red. I played with Mid and Instr and still can't get it .
All suggestions how to get it done will be appreciated.

Catalina
 

DJkarl

Registered User.
Local time
Today, 15:31
Joined
Mar 16, 2007
Messages
1,028
Code:
Function ParsePart(strVal As String) As String

ParsePart = Mid(strVal, InStr(1, strVal, "\") + 1, InStrRev(strVal, "\") - (InStr(1, strVal, "\")))

End Function
 

Catalina

Registered User.
Local time
Today, 13:31
Joined
Feb 9, 2005
Messages
462
Works great DJkarl.

Thanks.

Catalina
 

Users who are viewing this thread

Top Bottom