[Gambas-user] Simple question about string object

Peter Landgren peter.talken at ...1879...
Wed Apr 2 20:57:49 CEST 2008


> > Hi,
> >
> > I'm lost.
> >
> > I can't see how to define a string object, so that I can get correct
> > results for UTF-8 when using methods like .Lcase or .Lower.
> >
> > /Peter
>
> There is no "string objects". Only a String datatype. The String class
> methods are all statics.
>
> So, for example, if your string is UTF-8 encoded (and only you know that,
> not Gambas), you convert it to lowercase this way:
>
> MyUTF8StringInLowerCase = String.LCase(MyUTF8String)
>
> Regards,

Thanks Benoit,

That little example explained a lot. 

/Peter




More information about the User mailing list