[Gambas-user] Re: "[12] Not an object" error.
ron
ronstk at ...239...
Mon Mar 8 20:49:34 CET 2004
On Monday 08 March 2004 20:19, Rob wrote:
> On Monday 08 March 2004 13:07, ron wrote:
> > l=${l:4:${#l}-7} ???????????
>
> It's a bashism. ${#l} is the length of variable l,
> ${l:start:length} is like Gambas' Mid$ function. It's saying,
> basically, take gb.somename.la and return just somename.
>
> I'd like to say I came up with it, but I got it from someone
> else's build script ;)
>
> Rob
>
Uhmmm
gb.somename.la = 3 + 8 + 3 = 14
start on 4 for the letters so I know now it is base 1
then I need 8 for length, ${#l}-7 = 14-7 = 8?
Do I miss something or do you miss the last letter? :)
Ron
More information about the User
mailing list