[Gambas-user] How to convert hexadecimal string to Int or Byte?

Jussi Lahtinen jussi.lahtinen at gmail.com
Mon Apr 12 21:22:45 CEST 2021


Val("&HF4") or CInt(&HF4)

Jussi

On Mon, Apr 12, 2021 at 9:38 PM T Lee Davidson <t.lee.davidson at gmail.com>
wrote:

> I have some text data with hex values represented as, for example, "0xF4".
>
> Neither CInt nor CByte seem to recognize "0xF4" or "&HF4" as a hexadecimal
> representation.
>
> How do I convert a hexadecimal string to an actual number?
>
>
> --
> Lee
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210412/75602daa/attachment-0001.htm>


More information about the User mailing list