[Gambas-user] R: Byte conversion

Ru Vuott vuott at ...325...
Sun Nov 25 14:23:25 CET 2012


Public Sub Button1_Click()

 Dim intIntero as integer

  intIntero = Val("&h4b56")

  Print intIntero

End



More info in WIKI of italian forum Gambas:
http://www.gambas-it.org/wiki/index.php/Da_Esadecimale_a_Decimale

Regards
vuott


--- Dom 25/11/12, Jesus <ea7dfh at ...2382...> ha scritto:

> Da: Jesus <ea7dfh at ...2382...>
> Oggetto: [Gambas-user] Byte conversion
> A: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
> Data: Domenica 25 novembre 2012, 13:49
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list