Re: [Gambas-user] Byte conversion

2012-11-25 Thread Jesus
El 25/11/12 14:45, Tobias Boege escribió: > On Sun, 25 Nov 2012, Jesus wrote: >> 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'

Re: [Gambas-user] Byte conversion

2012-11-25 Thread Tobias Boege
On Sun, 25 Nov 2012, Jesus wrote: > 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 l

[Gambas-user] Byte conversion

2012-11-25 Thread Jesus
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 conv