Assign a number value to a letter - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Assign a number value to a letter

Hi I was wondering if there is a quick way to Assign a number value to a letter. So for instance if i type 1 an A will appear in the label and if i type 3 three A's will appear in the label. Then once i get to 5 i want to use B then 10 would be C and so forth.

Comments

  • BitByBit_ThorBitByBit_Thor Posts: 2,444Member
    : Hi I was wondering if there is a quick way to Assign a number value
    : to a letter. So for instance if i type 1 an A will appear in the
    : label and if i type 3 three A's will appear in the label. Then once
    : i get to 5 i want to use B then 10 would be C and so forth.
    :

    Easy? Perhaps not, but it'll be cool :)
    I'm currently doubting, how are you assigning a value to a letter? A = 1, B = 5, C = 10.. then what's D? D=15, E=20, etc?
    Depending on whether the value assignments are systematic, it could be simpler than when it's arbitrary.
    But basically this problem comes down to converting a number from one system to another (such as decimal to hexadecimal, or to binary, or octal, or in this case a more custom system).
    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
Sign In or Register to comment.