web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

JOb - Convert String to Hexadecimal

(0) ShareShare
ReportReport
Posted on by

Can anyone give me the job code for Converting String to Hexadecimal?

pleaseeeee

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You have a generic question so I will provide a generic answer, which might not fit your original question:

    msdn.microsoft.com/.../retailutils.str2hex.aspx

    I will explain why you should stop doing one-liner requests.

    First of all, it is frustrating that each time we need to request additional details from you.

    Secondly, a string to hex conversion could be any of the following:

    • str = '123ABC', and you want to get the ASCII codes of the characters in a hexadecimal format, for which it would be char2num, and then int2hex
    • str = '123.45', which is a decimal real number stored in a string, for which you could use number conversions with str2real, then call something like this: http://dynamics-ax-live.blogspot.hu/2011/04/how-to-format-your-number-clr-style.html
    • your string contains numbers and characters in another format such as base64, base32, base10, whatever, for which you need to do number conversions between the different bases

    Since AX supports .Net namespaces, you have about 10 different tools for doing such conversions. If you would google/bing this with with C# tag, you could use almost all results except Linq.

  • yasu Profile Picture
    on at

    Sorry Made a Mistake I need code for converting STRING TO DECIMAL

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    If you would give more detaild explanations on what you are trying to solve, you would make less mistakes.

    msdn.microsoft.com/.../aa845181.aspx

    Or you could do C#-style with System.Int32::Parse('1234');

    https://msdn.microsoft.com/en-us/library/b3h1hf19(v=vs.110).aspx

  • Vilmos Kintera Profile Picture
    46,149 on at

    Can you please make sure you tick the checkboxes for helpful answers next to each post, so the topic gets resolved? Thank you.

  • yasu Profile Picture
    on at

    yes I do that .. but only to Answers that actually help

  • Vilmos Kintera Profile Picture
    46,149 on at

    If you do not provide clear enough description of your problems/requirements, change the topic halfway through the discussion and do not provide feedback on what you have tried, what worked and what did not, it is very hard to actually help.

  • Martin Dráb Profile Picture
    237,959 Most Valuable Professional on at

    yasu, you didn't react to Vilmo's suggested answer, therefore nobody knew that it didn't help you and what problem did you have with. Don't be surprised that you don't get any solutions if you don't tell us about your problem.

    If you still need an answer, please explain why you find the suggested answer unsatisfactory, so we can tell you something more. If you changed your mind and you're not interested in the answer anymore, please say it, so it's clear that nobody should waste time with this thread anymore.

  • yasu Profile Picture
    on at

    OK sir .... lets Finish this thread .....

  • Vilmos Kintera Profile Picture
    46,149 on at

    You have very detailed answers for both string->hexadecimal and string->decimal conversions using multiple ways. Make sure you take your time to review them and mark it as a solution.

  • Verified answer
    yasu Profile Picture
    on at

    Well thanks anyway .... The answer that I was looking for was the Hex2Int method ........

    I dont know how to close this thread

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans