[Deleted]

Just starting out? Need help? Post your questions and find answers here.
User avatar
NicTheQuick
Addict
Addict
Posts: 1527
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Convert hex of $23 to literal string of "23"

Post by NicTheQuick »

Your new first post still makes no sense. How did you create that Fake output? That's your solution.

Code: Select all

For h = 0 To 99
  Debug "$" + h + " = " + h
Next
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
BarryG
Addict
Addict
Posts: 4221
Joined: Thu Apr 18, 2019 8:17 am

Re: Convert hex of $23 to literal string of "23"

Post by BarryG »

NicTheQuick wrote: Sun Dec 24, 2023 1:01 pmYour request is very silly. [...] I get the feeling you just wanna troll me.
Not at all. But don't worry about it.
User avatar
NicTheQuick
Addict
Addict
Posts: 1527
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: [Deleted]

Post by NicTheQuick »

Can you please stop editing all your posts afterwards. It's confusing as fuck.

Also I just tried to write a longer answer and I got a "Permission denied" and now everything I wrote is gone.... :evil:

This is what you wrote before:
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.
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.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
NicTheQuick
Addict
Addict
Posts: 1527
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: [Deleted]

Post by NicTheQuick »

I hate threads like this.

I try to give help here and take my time for it and then everything is just deleted and it all makes no sense anymore. Why do you do that? Do you think I'll want to help you again in the future? No, I don't.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
BarryG
Addict
Addict
Posts: 4221
Joined: Thu Apr 18, 2019 8:17 am

Re: [Deleted]

Post by BarryG »

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.
User avatar
NicTheQuick
Addict
Addict
Posts: 1527
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: [Deleted]

Post by NicTheQuick »

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.
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.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
SPH
Enthusiast
Enthusiast
Posts: 596
Joined: Tue Jan 04, 2011 6:21 pm

Re: [Deleted]

Post by SPH »

Come BarryG, we love you ❤

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
Locked