[Gambas-user] How to convert hexadecimal string to Int or Byte?
T Lee Davidson
t.lee.davidson at gmail.com
Mon Apr 12 22:05:47 CEST 2021
On 4/12/21 3:22 PM, Jussi Lahtinen wrote:
> Val("&HF4") or CInt(&HF4)
>
> Jussi
>
Ah, geez. I missed Val() in the list of conversion functions. Thank you.
> On Mon, Apr 12, 2021 at 9:38 PM T Lee Davidson <t.lee.davidson at gmail.com <mailto: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
--
Lee
More information about the User
mailing list