473,513 Members | 2,291 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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

Dec 22 '06 #1
8 3552
Class assignment, right? So you wouldn't think of solving this rather simple
problem yourself?

Tom Dacon
Dacon Software Consulting

<do**********@gmail.comwrote in message
news:11*********************@f1g2000cwa.googlegrou ps.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

Dec 22 '06 #2
nope not hw, its for work.

On Dec 22, 6:50 pm, "Tom Dacon" <T...@dacons.comwrote:
Class assignment, right? So you wouldn't think of solving this rather simple
problem yourself?

Tom Dacon
Dacon Software Consulting

<dohyohdoh...@gmail.comwrote in messagenews:11*********************@f1g2000cwa.goo glegroups.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
Dec 23 '06 #3
Yeah ... right.

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

A holiday season homework assignment.
<do**********@gmail.comwrote in message
news:11*********************@73g2000cwn.googlegrou ps.com...
nope not hw, its for work.

On Dec 22, 6:50 pm, "Tom Dacon" <T...@dacons.comwrote:
>Class assignment, right? So you wouldn't think of solving this rather
simple
problem yourself?

Tom Dacon
Dacon Software Consulting

<dohyohdoh...@gmail.comwrote in
messagenews:11*********************@f1g2000cwa.go oglegroups.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

Dec 23 '06 #4
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.
<do**********@gmail.comwrote in message
news:11*********************@73g2000cwn.googlegrou ps.com...
nope not hw, its for work.

On Dec 22, 6:50 pm, "Tom Dacon" <T...@dacons.comwrote:
>Class assignment, right? So you wouldn't think of solving this rather
simple
problem yourself?

Tom Dacon
Dacon Software Consulting

<dohyohdoh...@gmail.comwrote in
messagenews:11*********************@f1g2000cwa.go oglegroups.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

Dec 23 '06 #5
Way to go Tom!!!!!!!!!!!!!!!!
"Tom Leylan" <tl*****@nospam.netwrote in message
news:eC**************@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.
<do**********@gmail.comwrote in message
news:11*********************@73g2000cwn.googlegrou ps.com...
>nope not hw, its for work.

On Dec 22, 6:50 pm, "Tom Dacon" <T...@dacons.comwrote:
>>Class assignment, right? So you wouldn't think of solving this rather
simple
problem yourself?

Tom Dacon
Dacon Software Consulting

<dohyohdoh...@gmail.comwrote in
messagenews:11*********************@f1g2000cwa.g ooglegroups.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


Dec 23 '06 #6
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" <tl*****@nospam.netwrote in message
news:eC**************@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.
<do**********@gmail.comwrote in message
news:11*********************@73g2000cwn.googlegrou ps.com...
>nope not hw, its for work.

On Dec 22, 6:50 pm, "Tom Dacon" <T...@dacons.comwrote:
>>Class assignment, right? So you wouldn't think of solving this
rather simple
problem yourself?

Tom Dacon
Dacon Software Consulting

<dohyohdoh...@gmail.comwrote in
messagenews:11*********************@f1g2000cwa.g ooglegroups.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


Dec 23 '06 #7
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:
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" <tl*****@nospam.netwrote in message
news:eC**************@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.
<do**********@gmail.comwrote in message
news:11*********************@73g2000cwn.googlegrou ps.com...
nope not hw, its for work.

On Dec 22, 6:50 pm, "Tom Dacon" <T...@dacons.comwrote:
Class assignment, right? So you wouldn't think of solving this
rather simple
problem yourself?

Tom Dacon
Dacon Software Consulting

<dohyohdoh...@gmail.comwrote in
messagenews:11*********************@f1g2000cwa.go oglegroups.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
Dec 24 '06 #8
tsk tsk...weak rejoinder

TD
Dec 26 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1976
by: Xah Lee | last post by:
20050226 exercise: generate all possible pairings given a list that is a set partitioned into subsets, generate a list of all possible pairings of elements in any two subset. Example: ...
10
2593
by: Crirus | last post by:
Is there a function that return some random ID like string alphanumeric? Like this: A35sDsd1dSGsH Thanks Crirus
210
10273
by: Christoph Zwerschke | last post by:
This is probably a FAQ, but I dare to ask it nevertheless since I haven't found a satisfying answer yet: Why isn't there an "ordered dictionary" class at least in the standard list? Time and again...
17
1819
by: Girish Sahani | last post by:
I have a list of strings all of length k. For every pair of k length strings which have k-1 characters in common, i want to generate a k+1 length string(the k-1 common characters + 2 not common...
3
5839
by: dohyohdohyoh | last post by:
I have a programming question to generate an ordered list of alphanumeric strings of length 4. two alphabets rest numberst, etc. EG 0000-9999 then A000-Z999 then AA00 to ZZ99 then AAA0 - ZZZ9...
9
18077
by: Robert Mago | last post by:
Is there a way to create a 10 characthers or less, alph-numeric string which is unique. I can't use the guid since its longer then 10 characthers. Also i cannot use a random number, since being...
8
7187
by: Marc | last post by:
Hi all, I have to generate and send to a printer many 6 digit alphanumeric strings. they have to be unique but I cannot check in a database or something like that if it have already been printed....
0
7269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4756
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.