2013/11/8 Bruce <bbr...@paddys-hill.net>: > On Fri, 2013-11-08 at 15:23 +0100, Fabien Bodard wrote: >> My turn !! >> >> Dim aVersion as String[] = scan(sVersion,"*.*.*") >> >> Print aVersion[0] >> >> >> Work also with split. >> > Ha! > > > Dim aVersion As String[] = Scan(Application.Version, "*.*.*") > > Print aVersion[0] > = 48 keystrokes > > > Print Split(Application.Version, ".")[0] > = 25 keystrokes >
Because i've used an intermediate var to reduce the calls. One day this can maybe be writed : Print Application.Version.Split(".")[0] lol One of my dreams ... Print "Hello World".Len Print MySTring.Replace("s","t").Replace("O","P") Print "Gambas".Mid(3,4) ----> mbas > :-) > Bruce > > > ------------------------------------------------------------------------------ > November Webinars for C, C++, Fortran Developers > Accelerate application performance with scalable programming models. Explore > techniques for threading, error checking, porting, and tuning. Get the most > from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user