Strip/Remove Path Info from a File Path

Author: Tripp W Black

Created: 02/27/2001 at 01:57 PM

 

Category:
Notes Developer Tips
LotusScript

Function StripPath(FilePath$) As String
For i% = Len(FilePath$) To 1 Step -1
If Mid$(FilePath$, i%, 1) = PlatDelim() Then
Exit For
End If
Next
StripPath = Right$(FilePath$, Len(FilePath$) - i%)
End Function

previous page