Generate ordered list of alphanumeric strings in .NET (C#)

  • Thread starter Thread starter dohyohdohyoh
  • Start date Start date
D

dohyohdohyoh

I have a programming question to generate an ordered list of
alphanumeric strings of length 4.
From 0000 to ZZZZ, numbers first, then one alphabet rest numbers, then
two alphabets rest numberst, etc.

EG 0000-9999 then A000-Z999 then AA00 to ZZ99 then AAA0 - ZZZ9 then
AAAA - ZZZZ
 
Class assignment, right? So you wouldn't think of solving this rather simple
problem yourself?

Tom Dacon
Dacon Software Consulting
 
nope not hw, its for work.

Class assignment, right? So you wouldn't think of solving this rather simple
problem yourself?

Tom Dacon
Dacon Software Consulting
 
Yeah ... right.

This exact question comes up every year about this time give or take a few
days.

A holiday season homework assignment.
 
I'm going to suggest you create an instance of the
FourPositionAlphanumericStringCollection class and simply call the
Generate() method on it. That's what I'd do.
 
Way to go Tom!!!!!!!!!!!!!!!!


Tom Leylan said:
I'm going to suggest you create an instance of the
FourPositionAlphanumericStringCollection class and simply call the
Generate() method on it. That's what I'd do.
 
Wow, you have a much more robust version of the .Net
framework than I do. That class must be in .Net 2.5. ;-)

Robin S.
-------------------
 
Thanks for all your help people, I was able to figure it out. The
problem was I was trying to do it with the help of the
FagsAndDykesCollection class but once I stopped doing that, it was a
breeze. ;)
 
Back
Top