Click here to Skip to main content
       

C#

 
AnswerRe: C# SqlTransaction Pinmembermark merrens14-Feb-13 8:42 
GeneralRe: C# SqlTransaction PinmemberHbr_Tha_real14-Feb-13 9:08 
GeneralRe: C# SqlTransaction Pinmembermark merrens14-Feb-13 9:46 
GeneralRe: C# SqlTransaction PinmemberHbr_Tha_real14-Feb-13 11:17 
GeneralRe: C# SqlTransaction Pinmembermark merrens14-Feb-13 11:46 
QuestionClassic ASP and C# syntax Pinmembervanikanc14-Feb-13 8:11 
AnswerRe: Classic ASP and C# syntax Pinmembervanikanc14-Feb-13 10:54 
Questionalphanumeric counter PinmemberAngela Scheuvront14-Feb-13 7:41 
I saw the previous post on this same type of question however it wasn't much help
 
Here is what I need to do
Start at
A0001... A9999 to B0000...Z9999 to AA000...ZZZZZ
 
I found this code but it didn't explain what to put in the the variables your passing to it.
 
string base36Characters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
 
string toBase36(int x, int digits)
{
   char[] result = new char[digits];
    for (int i = digits - 1; i >= 0; --i)
    {
        result[i] = base36Characters[x % 36];
        x /= 36;
    }
    return new string(result);
}
 
IEnumerable<string> base36Counter()
{
    for (int n = 0; n < 36 * 36 * 36 * 36; ++n)
    {
        yield return toBase36(n, 4);
    }
}
 
void Run()
{
    foreach (string s in base36Counter())
        Console.WriteLine(s);
}

AnswerRe: alphanumeric counter PinmemberJibesh14-Feb-13 9:04 
GeneralRe: alphanumeric counter PinmemberMatt T Heffron14-Feb-13 9:28 
GeneralRe: alphanumeric counter PinmemberJibesh14-Feb-13 9:29 
GeneralRe: alphanumeric counter PinmemberMatt T Heffron14-Feb-13 9:13 
QuestionRe: alphanumeric counter PinmemberMatt T Heffron14-Feb-13 9:52 
AnswerRe: alphanumeric counter PinmemberAngela Scheuvront14-Feb-13 10:15 
GeneralRe: alphanumeric counter PinmemberMatt T Heffron14-Feb-13 10:25 
GeneralRe: alphanumeric counter PinmemberAngela Scheuvront15-Feb-13 1:45 
AnswerRe: alphanumeric counter PinmemberRichard Deeming15-Feb-13 1:37 
GeneralRe: alphanumeric counter PinmemberMatt T Heffron15-Feb-13 7:39 
QuestionStreamWriter.WriteAsync Pinmemberwizardzz14-Feb-13 6:15 
AnswerRe: StreamWriter.WriteAsync PinmvpDave Kreskowiak14-Feb-13 7:31 
GeneralRe: StreamWriter.WriteAsync Pinmemberwizardzz14-Feb-13 8:33 
GeneralRe: StreamWriter.WriteAsync Pinmemberwizardzz14-Feb-13 8:55 
Questionsingle selection of radio buttons in a table PinmemberMember 258173814-Feb-13 4:36 
AnswerRe: single selection of radio buttons in a table PinmvpRichard MacCutchan14-Feb-13 4:58 
AnswerRe: single selection of radio buttons in a table PinmemberAlan Balkany14-Feb-13 5:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 11 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid