Home All Groups Group Topic Archive Search About

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

Author
22 Dec 2006 11:41 PM
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

Author
22 Dec 2006 11:50 PM
Tom Dacon
Class assignment, right? So you wouldn't think of solving this rather simple
problem yourself?

Tom Dacon
Dacon Software Consulting

<dohyohdoh***@gmail.com> wrote in message
Show quoteHide quote
news:1166830864.501044.92150@f1g2000cwa.googlegroups.com...
>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
>
Are all your drivers up to date? click for free checkup

Author
23 Dec 2006 5:00 AM
dohyohdohyoh
nope not hw, its for work.

Show quoteHide quote
On Dec 22, 6:50 pm, "Tom Dacon" <T***@dacons.com> wrote:
> Class assignment, right? So you wouldn't think of solving this rather simple
> problem yourself?
>
> Tom Dacon
> Dacon Software Consulting
>
> <dohyohdoh***@gmail.com> wrote in messagenews:1166830864.501044.92***@f1g2000cwa.googlegroups.com...
>
> >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
Author
23 Dec 2006 5:24 AM
Stephany Young
Yeah ... right.

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

A holiday season homework assignment.


<dohyohdoh***@gmail.com> wrote in message
Show quoteHide quote
news:1166850048.231059.44600@73g2000cwn.googlegroups.com...
> nope not hw, its for work.
>
> On Dec 22, 6:50 pm, "Tom Dacon" <T***@dacons.com> wrote:
>> Class assignment, right? So you wouldn't think of solving this rather
>> simple
>> problem yourself?
>>
>> Tom Dacon
>> Dacon Software Consulting
>>
>> <dohyohdoh***@gmail.com> wrote in
>> messagenews:1166830864.501044.92***@f1g2000cwa.googlegroups.com...
>>
>> >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
>
Author
23 Dec 2006 5:29 AM
Tom Leylan
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.


<dohyohdoh***@gmail.com> wrote in message
Show quoteHide quote
news:1166850048.231059.44600@73g2000cwn.googlegroups.com...
> nope not hw, its for work.
>
> On Dec 22, 6:50 pm, "Tom Dacon" <T***@dacons.com> wrote:
>> Class assignment, right? So you wouldn't think of solving this rather
>> simple
>> problem yourself?
>>
>> Tom Dacon
>> Dacon Software Consulting
>>
>> <dohyohdoh***@gmail.com> wrote in
>> messagenews:1166830864.501044.92***@f1g2000cwa.googlegroups.com...
>>
>> >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
>
Author
23 Dec 2006 5:43 AM
Stephany Young
Way to go Tom!!!!!!!!!!!!!!!!


Show quoteHide quote
"Tom Leylan" <tleylan@nospam.net> wrote in message
news:eCqRBNlJHHA.4992@TK2MSFTNGP04.phx.gbl...
> 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.
>
>
> <dohyohdoh***@gmail.com> wrote in message
> news:1166850048.231059.44600@73g2000cwn.googlegroups.com...
>> nope not hw, its for work.
>>
>> On Dec 22, 6:50 pm, "Tom Dacon" <T***@dacons.com> wrote:
>>> Class assignment, right? So you wouldn't think of solving this rather
>>> simple
>>> problem yourself?
>>>
>>> Tom Dacon
>>> Dacon Software Consulting
>>>
>>> <dohyohdoh***@gmail.com> wrote in
>>> messagenews:1166830864.501044.92***@f1g2000cwa.googlegroups.com...
>>>
>>> >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
>>
>
>
Author
23 Dec 2006 5:54 AM
RobinS
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.
-------------------
Show quoteHide quote
"Tom Leylan" <tleylan@nospam.net> wrote in message
news:eCqRBNlJHHA.4992@TK2MSFTNGP04.phx.gbl...
> 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.
>
>
> <dohyohdoh***@gmail.com> wrote in message
> news:1166850048.231059.44600@73g2000cwn.googlegroups.com...
>> nope not hw, its for work.
>>
>> On Dec 22, 6:50 pm, "Tom Dacon" <T***@dacons.com> wrote:
>>> Class assignment, right? So you wouldn't think of solving this
>>> rather simple
>>> problem yourself?
>>>
>>> Tom Dacon
>>> Dacon Software Consulting
>>>
>>> <dohyohdoh***@gmail.com> wrote in
>>> messagenews:1166830864.501044.92***@f1g2000cwa.googlegroups.com...
>>>
>>> >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
>>
>
>
Author
24 Dec 2006 12:17 AM
dohyohdohyoh
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. ;)


RobinS wrote:
Show quoteHide quote
> 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.
> -------------------
> "Tom Leylan" <tleylan@nospam.net> wrote in message
> news:eCqRBNlJHHA.4992@TK2MSFTNGP04.phx.gbl...
> > 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.
> >
> >
> > <dohyohdoh***@gmail.com> wrote in message
> > news:1166850048.231059.44600@73g2000cwn.googlegroups.com...
> >> nope not hw, its for work.
> >>
> >> On Dec 22, 6:50 pm, "Tom Dacon" <T***@dacons.com> wrote:
> >>> Class assignment, right? So you wouldn't think of solving this
> >>> rather simple
> >>> problem yourself?
> >>>
> >>> Tom Dacon
> >>> Dacon Software Consulting
> >>>
> >>> <dohyohdoh***@gmail.com> wrote in
> >>> messagenews:1166830864.501044.92***@f1g2000cwa.googlegroups.com...
> >>>
> >>> >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
> >>
> >
> >
Author
26 Dec 2006 5:27 PM
Tom Dacon
tsk tsk...weak rejoinder

TD

Bookmark and Share

Post Thread options