In this way you can extract the file name of a given route (from the last " /").
What I do is a countdown until you find the character "/": Public Sub extraedesdebarra(ruta As String) As String Dim a As Integer Dim letra As String Dim cadena As String For a = Len(ruta) To 1 Step -1 letra = Mid$(ruta, a, 1) If letra = "/" Then Return cadena Else cadena = letra & cadena Endif Next End 2013/8/22 abbat81 <abbat...@mail.ru> > Ru Vuott wrote > > Hello Abbat81, > > Dim s As String = "http://www.link1.com/folder1/picture1.png" > > > > Print ss[4] > > > > End > > But link can contain a different count of "/" > > > example: > http://www.link1.com/folder1/picture1.png > http://www.link2.com/folder2/folder3/picture2_adv.png > > > > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952p42955.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user