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

Amon Forstmann amon at ...715...
Sun Nov 13 19:35:31 CET 2005


Nice :)

That's really helpful.

Regards,

Amon

Am Sonntag, den 13.11.2005, 18:04 +0100 schrieb Daniel Campos:
> 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
> >
> 
> 
> -------------------------------------------------------
> 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