Windows CE 2.10Windows CE .NET 4.1Windows CE .NET 4.2Windows CE 3.0Windows CE .NET 4.0Windows CE 2.11Windows XP Tablet Ed.Embedded.NET CFWindows MobileVisual Studio .NET 2002Windows Vista.NET 1.0DBAVisual Studio .NET 2003Windows 2003.NET 1.1Windows 2000ASPArchitectWindows XP.NET 2.0Mobile AppsIntermediateDevVisual StudioSQLWindows.NETASP.NETC#
Alphanumeric increment in C#






2.33/5 (16 votes)
Oct 12, 2004

85500

4823
This code is very useful when you want to auto increment number using A-Z and 1-9 with possible combinationYou can pass any string and system will return next possible number e.g. You can Pass number "PRO01A9" then You will get "PRO01B1"
Download source files - 439 Kb
Introduction
This code is useful when you want to generate number which can be auto-Alphanumeric increment like product code or Item code this will generate next possible number using A-Z and 0-9 number.
one good thing with this is you can always keep width of Number fix all the time system will always return number in same with as u passed one.
So this solution will be application for following business requirements.
- When You want to generate Item code or product code with fix width
- Auto Increment based on last number so you don't have to manage any system this code will return same.