473,585 Members | 2,513 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 3559
Class assignment, right? So you wouldn't think of solving this rather simple
problem yourself?

Tom Dacon
Dacon Software Consulting

<do**********@g mail.comwrote in message
news:11******** *************@f 1g2000cwa.googl egroups.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.co mwrote:
Class assignment, right? So you wouldn't think of solving this rather simple
problem yourself?

Tom Dacon
Dacon Software Consulting

<dohyohdoh...@g mail.comwrote in messagenews:11* *************** *****@f1g2000cw a.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
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**********@g mail.comwrote in message
news:11******** *************@7 3g2000cwn.googl egroups.com...
nope not hw, its for work.

On Dec 22, 6:50 pm, "Tom Dacon" <T...@dacons.co mwrote:
>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 *************** ******@f1g2000c wa.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

Dec 23 '06 #4
I'm going to suggest you create an instance of the
FourPositionAlp hanumericString Collection class and simply call the
Generate() method on it. That's what I'd do.
<do**********@g mail.comwrote in message
news:11******** *************@7 3g2000cwn.googl egroups.com...
nope not hw, its for work.

On Dec 22, 6:50 pm, "Tom Dacon" <T...@dacons.co mwrote:
>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 *************** ******@f1g2000c wa.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

Dec 23 '06 #5
Way to go Tom!!!!!!!!!!!! !!!!
"Tom Leylan" <tl*****@nospam .netwrote in message
news:eC******** ******@TK2MSFTN GP04.phx.gbl...
I'm going to suggest you create an instance of the
FourPositionAlp hanumericString Collection class and simply call the
Generate() method on it. That's what I'd do.
<do**********@g mail.comwrote in message
news:11******** *************@7 3g2000cwn.googl egroups.com...
>nope not hw, its for work.

On Dec 22, 6:50 pm, "Tom Dacon" <T...@dacons.co mwrote:
>>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:1 1************** *******@f1g2000 cwa.googlegroup s.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******** ******@TK2MSFTN GP04.phx.gbl...
I'm going to suggest you create an instance of the
FourPositionAlp hanumericString Collection class and simply call the
Generate() method on it. That's what I'd do.
<do**********@g mail.comwrote in message
news:11******** *************@7 3g2000cwn.googl egroups.com...
>nope not hw, its for work.

On Dec 22, 6:50 pm, "Tom Dacon" <T...@dacons.co mwrote:
>>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:1 1************** *******@f1g2000 cwa.googlegroup s.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
FagsAndDykesCol lection 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******** ******@TK2MSFTN GP04.phx.gbl...
I'm going to suggest you create an instance of the
FourPositionAlp hanumericString Collection class and simply call the
Generate() method on it. That's what I'd do.
<do**********@g mail.comwrote in message
news:11******** *************@7 3g2000cwn.googl egroups.com...
nope not hw, its for work.

On Dec 22, 6:50 pm, "Tom Dacon" <T...@dacons.co mwrote:
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 *************** ******@f1g2000c wa.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
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
1982
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: genpair( ,,] ); returns:
10
2606
by: Crirus | last post by:
Is there a function that return some random ID like string alphanumeric? Like this: A35sDsd1dSGsH Thanks Crirus
210
10384
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 I am missing that feature. Maybe there is something wrong with my programming style, but I rather think it is generally useful. I fully agree...
17
1832
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 characters). e.g i want to join 'abcd' with bcde' to get 'abcde' but i dont want to join 'abcd' with 'cdef' Currently i'm joining every 2 strings,...
3
5843
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 then AAAA - ZZZZ
9
18100
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 random does not mean that its unique.
8
7195
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. the string has also to seem a random one and it cannot have an apparence of a sequence. My first approach is to do it with a decimal counter and...
0
7836
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8336
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7950
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5389
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3835
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
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 we have to send another system
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.