[Gambas-user] Simple question about string object
Benoit Minisini
gambas at ...1...
Wed Apr 2 19:15:34 CEST 2008
On mercredi 2 avril 2008, Peter Landgren wrote:
> 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,
--
Benoit Minisini
More information about the User
mailing list