Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / July 2007

Tip: Looking for answers? Try searching our database.

count up alphanumerically

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Markus Schnitzer - 12 Jul 2007 14:18 GMT
Hello,
I must count up a alphanumerically-number:

A = "ABC12"
A += 1
then
A => ABC13

or "A34C" => "A34D"

What can I do?

Thanks

Markus@Schnitzer-cp,
zacks@construction-imaging.com - 12 Jul 2007 14:46 GMT
On Jul 12, 9:18 am, "Markus Schnitzer" <schnit...@schnitzer-dreher.de>
wrote:
> Hello,
> I must count up a alphanumerically-number:
[quoted text clipped - 7 lines]
>
> What can I do?

Once you realize that every character, numeric or alphabetic, has a
numerical representation, the solution to your problem is simple.
jeff - 12 Jul 2007 14:52 GMT
what will ZZZ + 1 give you ...

or A9 + 1 give you

how do you wrap and expand these alpha-numerical "numbers".

ie.

9 + 1 = 10

99 + 1 = 100

Z + 1 = ??

once you define the rules, you should be able to easily write a class to do
this.  Use the String and check the right most character...

Jeff.

> Hello,
> I must count up a alphanumerically-number:
[quoted text clipped - 11 lines]
>
> Markus@Schnitzer-cp,

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.