Announcement

Collapse
No announcement yet.

Hex to string

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hex to string

    hello guys,
    i need some help here
    i have a variable in HEX ,and i want to convert it to STRING ( simple alphabet ) and viceversa a string to hex
    hex to bin and bin to hex.
    so i'm looking to some plugin or a function or dll or any way to do it.
    thank you.

  • #2
    a quick search in forum for hexidecimal produced
    https://forums.indigorose.com/forum/...ile#post219437

    Comment


    • #3
      but i didnt understand the answer on the topic

      Comment


      • #4
        Here is a sample project. A "number" in Lua can be decimal or hexadecimal. If it is hexadecimal, it needs to start with "0x" to be recognized correctly.

        Click image for larger version  Name:	SCRN-2021-03-18-03.png Views:	1 Size:	8.9 KB ID:	306539

        If a number cannot be recognized, such as converting a hexadecimal without starting with "0x", converting a decimal containing digits other than "0" and "1", or anything else containing invalid characters, the conversion will result in an error.

        Ulrich

        Comment


        • #5
          samibioss can you post some example input and expected output? I see that Ulrich interpreted as numeric base conversion, however I interpreted it as converting data to hex-streams and vice-versa.
          Bas Groothedde
          Imagine Programming :: Blog

          AMS8 Plugins
          IMXLH Compiler

          Comment

          Working...
          X