[Gambas-user] "Extracting" the filename from a full-path string
Pablo Vera
pvera at ...729...
Sat Nov 12 01:38:26 CET 2005
Try this:
FileName = Mid$(FullPath, RInStr(FullPath, "/") + 1)
Saludos,
Pablo Vera
Amon Forstmann wrote:
> Hi there,
>
> can somebody tell me a way to extract the filenames from the following
> strings?
>
> "/apps/docs/help.txt" or "/usr/src/linux/bla.txt"
>
> I need the last field of these strings. The delimiter is always "/"
>
> Thanks for your help,
>
> Amon
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
More information about the User
mailing list