[Gambas-user] Removing last character of a string

Charlie Reinl Karl.Reinl at ...2345...
Sat Jan 30 21:36:08 CET 2010


Am Samstag, den 30.01.2010, 18:49 +0100 schrieb Fabien Bodard:
> charlie ... string.something is for the utf8 strings
> 
> and the left negative way is the good short way
> 
> 2010/1/30 Charlie Reinl <Karl.Reinl at ...9...>:
> > Am Samstag, den 30.01.2010, 16:03 +0100 schrieb Alessandro Rinaldi:
> >> The subject explains everything... I really can't find a way to do that!
> >> Thank you
> >>
> >
> > Salut ,
> >
> > take only the left side - 1 char
> >
> > Dim sText as String
> >
> > sText = "1234567890A"
> >
> > sText =   String.Left(sText,  String.Len(sText) - 1)
> >
> >
> > --
> > Amicalement
> > Charlie

Salut Fabien,

yes I know that it is for utf8, but till now I had no problems, which I
had with Left   and/or Len .

Are there known problems ?

For the -1 , yes very nice, but old habits, and daily use, could be the
end of innovations. 

-- 
Amicalement
Charlie





More information about the User mailing list