Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi my barcode series start from RU000001(has fixed length) and iam sure that one time will come it will reach max RU999999, so how system can generated another series without changing RU as well length.
do u have any idea...?? how can we resolve this.
thanks/rita
Posted
Comments
Sampath Lokuge 11-Jun-14 2:52am    
Is it OK you for generating random numbers instead of a sequential one which you're having right now ?

1 solution

If you have used all the values between RU000001 and RU999999 and you can't change the length, or the RU prefix, then your only alternatives are to use other characters in place of the digits:
RUA00001 to RUA99999, then RUB00001, and so forth.
Get to RUZ99999 and you move to RUAA0001, and so on.
 
Share this answer
 
Comments
lukeer 11-Jun-14 3:54am    
Or start with digits 1-z right away. However, given enough iterations, one time someone will complain about the barcode containing nasty words.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900