[Gambas-user] "Extracting" the filename from a full-path string

Daniel Campos dcamposf at ...626...
Sun Nov 13 18:04:29 CET 2005


Some functions:

http://64.128.110.55/help/comp/gb/file/basename
http://64.128.110.55/help/comp/gb/file/ext
http://64.128.110.55/help/comp/gb/file/name

Regards,

D. Campos

2005/11/12, Amon Forstmann <amon at ...715...>:
> Thank you it works :)
>
>
>
>
> Am Samstag, den 12.11.2005, 05:23 +0100 schrieb PV:
> > On 12/11/2005 00:18, 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 "/"
> >
> > filename = File.Name("/usr/src/linux/bla.txt")
> >
> >
> > Ciao,
> > Piero
> >
> >
> > -------------------------------------------------------
> > 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
>
>
>
> -------------------------------------------------------
> 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