Re: [Vala] ascii



On Tue, 2011-10-25 at 11:19 -0400, "Luis L. Rodríguez Oro" wrote:
El 25/10/11 08:52, Rodrigo Esteban Cares Guarda escribió:
Hi,
You can try:

int ascii_value = int.parse("%d".printf('X'));

Replacing X char by your character.

Good luck.

El mar, 25-10-2011 a las 08:10 -0400, "Luis L. Rodríguez Oro" escribió:
How can i get ascii code from a character?



thank you very much, work perfect!

I hope it's not the Vala Recommended Way. It looks awful.

        Xav




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]