Print Page | Close Window

ASP Generator

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=15388
Printed Date: 30 March 2026 at 6:24am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: ASP Generator
Posted By: velkymx
Subject: ASP Generator
Date Posted: 06 June 2005 at 6:06pm
I need help! I want to build a part number generator that will create sequential strings using: abcdefghijklmnopqrstuvwxyz123456789

000000
000001
000002
...
00000A
00000B
...
00001A
00001B
...

Any one have any idea how to do this?



Replies:
Posted By: pmormr
Date Posted: 20 June 2005 at 1:04am
Why not just use hexadecimal (0123456789ABCDEF)? That way you can just use a number (you could start at 1 or wherever satisfies your needs) and then just use the "hex()" function to convert the number to hex. That'll work just fine in most cases (and give you numbers and letters most of the time).

I'm sorry, but I don't think ASP came complete with a base-10 to base-36 number converter...

I'm pretty sure there is a way to do what your talking about though, I just have no idea on how to accomplish it. Somebody here should know how to do it.



-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: Gullanian
Date Posted: 20 June 2005 at 10:23am
I wrote a function that converts any base to any base, i'll try and find it.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net