Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6828581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:23:59+00:00 2026-05-26T22:23:59+00:00

I am beginner to programming and c# , I want to convert a value

  • 0

I am beginner to programming and c# , I want to convert a value which has minimum 6 digits into alphabetic form which also have the same number of Alphabets.I do not want to make it simple for user who have numerical value but he will not be able to guess its alphabetic value.that is the code i am trying to use.

   string a = input.Text;
   string temp = "ABCDEFGHIJKL";
   string ans = "";
   for (int i = 0; i < a.Length; i++)
   ans += temp[a[i] - 48];
   output.Text = ans;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:24:00+00:00Added an answer on May 26, 2026 at 10:24 pm

    So here is a method for you, solving what I’ve understand your problem is:

    public string ConvertNumToAlpha(string numbers)
    {
        string result = string.Empty;
        for (int i = 0; i < numbers.Length; i++)
        {
            result += Convert.ToChar(int.Parse(numbers.Substring(i, 1)) + 64);
        }
        return result;
    }
    

    And another “high-sophisticated encrypt” method:

    public string EncryptNum(string numbers, string encryptString)
    {
        string result = string.Empty;
        for (int i = 0; i < numbers.Length; i++)
        {
            result += encryptString.Substring(Math.Min(int.Parse(numbers.Substring(i, 1)), encryptString.Length) - 1, 1);
        }
        return result;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i m the beginner in iphone programming i want to make an application which
As a beginner in programming it always bugs me when I run into a
I'm just starting to get into jquery/javascript programming so this may be a beginner
everybody, I'm beginner in programming, I've just finished my course on C++, I want
I am a beginner in programming. I have a large piece of code. I
I am a beginner in Android programming. I want to build a simple application
I am very beginner With Programming...(unfortunately) I want to remove Any added QueryString To
I'm a beginner on Gmaps programming. I want to create an InfoWindow containing two
I'm a beginner when it comes to programming, and I have the nasty habit
Hello I want to make simple shopping cart. I am a beginner in programming.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.