Code: Select all
For h = 0 To 99
Debug "$" + h + " = " + h
Next
Code: Select all
For h = 0 To 99
Debug "$" + h + " = " + h
NextNot at all. But don't worry about it.NicTheQuick wrote: Sun Dec 24, 2023 1:01 pmYour request is very silly. [...] I get the feeling you just wanna troll me.

So how do you read that value from the file? Is it a string with '$' as a prefix? Then just remove it. But then it is not hexadecimal value at all.Not trolling, sorry. But it seems it can't be done with a simple calculation or conversion. I guess I'll have to use a pre-filled array or map. Thanks anyway!
That first example is a fake output just to show what I'm trying to do. The reason I want it, is that a file I have has the year as a hex value in it, which can obviously be from $0 to $99. So I'm trying to convert that year's hex value to a string with "20" prefixing it. So if the file's byte value was $23, I need to show it as the year "2023" as a string.


I called your request silly, not you. And I also didn't call you a troll, I just got the feeling that I get trolled. You are a long time member in this board and you have posted a lot here. That's why I thought you wouldn't react so childishly and delete everything you've written here. I really wanted to understand you, but it seemed like you didn't want to understand me.BarryG wrote: Sun Dec 24, 2023 1:26 pm Calling me silly and a troll... yeah, don't worry about not helping me, because I'm out of here. The place isn't like it used to be. Signing off.