Re: libseed-list Defining a gchar in seed?
- From: alsaf <alfraealba googlemail com>
- To: Seed - Gnome Javascript <libseed-list gnome org>
- Subject: Re: libseed-list Defining a gchar in seed?
- Date: Sat, 06 Feb 2010 21:24:40 +0000
I googled about this and managed to get a workaround to get a char
variable:
// Convert character to ASCII int value
var text = "a";
var tmp = text.charCodeAt(0);
// Convert 'character' to upper case
tmp = glib.ascii_toupper(tmp);
// Change from ASCII Int to character
temp = String.fromCharCode(tmp)
print (temp);
A bit long winded but better than nothing.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]