SubName: GetFilename
Description: Gets the Filename of Image or Page from Path
Tags: Filenames GetFilename
Description: Gets the Filename of Image or Page from Path
B4X:
Sub GetFilename(fullpath As String) As String
Return fullpath.SubString(fullpath.LastIndexOf("/") + 1)
End Sub
'
' Example
Log(GetFilename("http://www.domain.tld/SomePage.html")) ' -> SomePage.html
Tags: Filenames GetFilename
Last edited: