Hi

Im trying to do some kind of conversion but can't get it done.

In python I do:

ord(str("\x01"))

Which returns 1 as an integer

How could I get this done in Gambas3?

This is what I've tried:

Asc(Cint(Str("\x01")))

but no luck. Seems there is not an specialized function to do the byte 
conversion.

Any clue?

Regards
-- 
Jesus Guardon

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to