1

Say for example I have a hex 1F40 = 8000, I want to show it in a textbox as 1111.1111.1111.1111, because I dont want to hide/mask any part of it. The user should be allowed to change that if they wish. Like 1111.1111.0000.1111 = 7936 for example if they wanted to. Is there any way to do this? Thanks in advance.

T.Janson
  • 31
  • 1
  • 5
  • A mask for `1F40` would be `1111.1111.1111.1111` - is that what you meant? – Deolus Apr 25 '19 at 09:17
  • Indeed, just changed it aswel when I realized – T.Janson Apr 25 '19 at 09:20
  • So according to your example, if they changed it from 1 to 0 what would the new hex value be? – Metheny Apr 25 '19 at 09:35
  • I changed it since the original example did no change much – T.Janson Apr 25 '19 at 09:49
  • It's certainly possible and would be easier without the decimal points and you would have to make sure there was always 16 binary digits. Then you could just use one of the convert functions. – Deolus Apr 25 '19 at 10:58
  • I wanted to start of simple, but the messages I want to mask could be between 8 and 58 binary digits if I remember correcly. – T.Janson Apr 25 '19 at 14:47

0 Answers0