HexToUInt64, UInt64toHex, UInt64toStr, StrToUInt64

Most of these functions are not available

So I was going to use a mask edit and mask numbers or Hex values
going to make a loop
read each character - multiply the value by 10 or 16 and add the value
And have a StrToUInt64 or HexToUInt64
USE a const hex: array [0…15] of char = [‘0’, ‘1’, ‘2’,…
that is not hard

Doing UInt64toHex, UInt64toStr,
can you suggest a conversion back to a UInt64 from Hex or Decimal please

https://www.delphibasics.co.uk/RTL.php?Name=StrToInt64

1 Like

yes I need a non polar 64 bit number to work with strings from a masked edit

use UInt32 for each half of the string, then shift and add

I did not think of that
thanks