The Daily Click ::. Forums ::. Klik Coding Help ::. ascii to hex
 

Post Reply  Post Oekaki 
 

Posted By Message

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
11th November, 2013 at 11/11/2013 15:53:44 -

I am trying to work out the easiest way of converting ascii to hex on the fly.

I am writing an app which takes a string and converts it to hex before saving it in an xml file. One way I have of doing it is to hardcode the hex values into the application but that will take FAAARRRR too long and will basically make the app pointless.

Does an extension that does this exist??

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
11th November, 2013 at 11/11/2013 19:53:58 -

There are various extensions that can get the ascii values of individual characters, and MMF2 has a built-in function to convert those to hex values - seems like you just need a fastloop to check each character, one at a time.

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
12th November, 2013 at 12/11/2013 10:20:32 -

Cheer Sketchy

Completely forgot about the Hex$ function within MMF2. Used this with the ASCII extension and it worked perfectly.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click