by st1d (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sun 8th October 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Remove file location from a path.
API Declarations
'
'Ex: text1 = TrimPath("C:\Windows\cdplayer.exe"
For i% = Len(sPath) To 1 Step -1
If InStr(i%, sPath, "\", 1) = i% Then Exit For
Next i%
text1.text = Right$(sPath, Len(sPath) - i%)