Results 1 to 6 of 6

Thread: [RESOLVED] Char / Dec to Hex Function

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2011
    Posts
    50

    Resolved [RESOLVED] Char / Dec to Hex Function

    Hello friends.

    I want to convert a decimal value or a hexadecimal char.
    Someone could write a function?

    Thanks in advance.

    Sorry for my bad English.
    Last edited by sevito; Aug 10th, 2011 at 04:27 PM.

  2. #2
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: Char / Dec to Hex Function

    You can call:
    Code:
    ToString("X2")
    On any integral type to get the hex value.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2011
    Posts
    50

    Re: Char / Dec to Hex Function

    Thank you very much friend.
    Prove it and it will detail whether the issue is resolved.

  4. #4

    Thread Starter
    Member
    Join Date
    Feb 2011
    Posts
    50

    Re: Char / Dec to Hex Function

    Hello again mate.

    I'll explain better what I do:
    I have two textboxes one is to enter the value and another to show the value in hexadecimal. I could make you an example?

  5. #5
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: Char / Dec to Hex Function

    Go here, then scroll to the heading named "The Hexadecimal ("X") Format Specifier" or equivalent in your first language.

  6. #6

    Thread Starter
    Member
    Join Date
    Feb 2011
    Posts
    50

    Re: Char / Dec to Hex Function

    Thank you very much friend for the information of the link.
    What I have already solved this issue.
    A Look again, thank you very much!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width