quinta-feira, 29 de novembro de 2007

GetFileName()

Retorna o nome de arquivo em um caminho.

Function GetFileName(ByVal Path)
Path = Replace(Path, "/", "\")
GetFileName = Right(Path, Len(Path) - InStrRev(Path, "\"))
End Function

Nenhum comentário: