[Gambas-user] App.Major Version
Fabien Bodard
gambas.fr at ...626...
Fri Nov 8 16:17:03 CET 2013
2013/11/8 Bruce <bbruen at ...2308...>:
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Fabien Bodard
More information about the User
mailing list