Re: libseed-list Defining a gchar in seed?



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]