Advertisement
ASP_Volume3 VB function enhancement #46158

ExtractFileName

It extracts a filename from a filepath.

AI

KI-Zusammenfassung: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Quellcode
original-source
Public Function ExtractFileName(ByVal strPath As String) As String
 ' StrReverse is only working in VB6
 strPath = StrReverse(strPath)
 strPath = Left(strPath, InStr(strPath, "\") - 1)
 ExtractFileName = StrReverse(strPath)
End Function

Upload
Originalkommentare (3)
Wiederhergestellt von der Wayback Machine