Tedious Grey
Member
- Joined
- Oct 13, 2008
- Messages
- 7
- Programming Experience
- Beginner
Okay so, I'm making this big all-in-one utility, but there's three things I have not added to the project, and through all my googling, I have not seen 1 code example that will help yet.
The first thing is, I want to implement a hex calculator into my project.I have seen millions of regular calculators, but I have not found any script for a hex calc.
The second thing is, I need a function where a user inputs a text string into a box, and the action it takes it to take every 4 letters of that string, reverse it, then convert it to hex.
Basically what it would need to do is, if the user typed in:Visualbasic
It would need an ouput:
Set 1 = 0x75736956
Set 2 = 0x61626C61
Set 3 = 0x00636973
Lastly, I need a feature that when a user inputs a hex value, like say 120F, hitting a button will add 8800000 in HEX to that hex number.
If anybody here can help me out, or post some code examples that might work, I would be eternally grateful.
The first thing is, I want to implement a hex calculator into my project.I have seen millions of regular calculators, but I have not found any script for a hex calc.
The second thing is, I need a function where a user inputs a text string into a box, and the action it takes it to take every 4 letters of that string, reverse it, then convert it to hex.
Basically what it would need to do is, if the user typed in:Visualbasic
It would need an ouput:
Set 1 = 0x75736956
Set 2 = 0x61626C61
Set 3 = 0x00636973
Lastly, I need a feature that when a user inputs a hex value, like say 120F, hitting a button will add 8800000 in HEX to that hex number.
If anybody here can help me out, or post some code examples that might work, I would be eternally grateful.