Get File Name From Path

From Logic Wiki
Revision as of 11:40, 9 March 2015 by Macrop (Talk) (Created page with "Category:VB.NET Category:ASP.NET Public Shared Function GetFileNameFromPath(FilePath As String) As String Dim ff As String() ff = Split(FilePath,...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


   Public Shared Function GetFileNameFromPath(FilePath As String) As String
       Dim ff As String()
       ff = Split(FilePath, "\")
       Return (ff(ff.Length - 1))
   End Function