Photo Gallery
Member List
Search
Calendars
FAQ
Ticket List
Log Out
Forums
Register
Login
My Profile
Inbox
Address Book
My Subscription
My Forums
RE: Incrementing The AlphaNumeric
Logged in as: Guest
arrSession:exec spGetSession 2,2,39041
Active Users: There are
0
members and
0
guests.
Users viewing this topic: none
Printable Version
All Forums
>>
[Scripting]
>>
WSH & Client Side VBScript
>> RE: Incrementing The AlphaNumeric
Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page:
<<
< prev
1
[2]
Login
Message
<< Older Topic
Newer Topic >>
RE: Incrementing The AlphaNumeric -
10/24/2006 9:26:44 PM
TNO
Posts: 1399
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status:
offline
Eureka, mission accomplished:
'Function BaseCon(N,radix) ' return representation of a number N ' in the system based on radix Function BaseCon(N, radix) Dim hex hex = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" Dim s s = "" Dim A A = N While A >= radix B = A Mod radix A = Int(A / radix) s = s & Mid(hex,B+1,1) Wend s = s & Mid(hex,A+1,1) BaseCon = StrReverse(s) End Function MsgBox BaseCon(15,16)
Thanks for the help ebgreen
_____________________________
To iterate is human, to recurse divine.
-- L. Peter Deutsch
(in reply to
TNO
)
Post #: 21
Page:
<<
< prev
1
[2]
If you found our site useful please link to us
<a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>
.
All Forums
>>
[Scripting]
>>
WSH & Client Side VBScript
>> RE: Incrementing The AlphaNumeric
Page:
<<
< prev
1
[2]
Jump to:
Select a Forum
All Forums
----------------------
[Welcome]
- - Forum Rules
- - Test Posting Messages
- - New Member Area/Introduction
[Scripting]
- - WSH & Client Side VBScript
- - WSH & Client Side VBScript Tutorial
- - Post a VBScript
- - Windows PowerShell
- - ASP
- - ASP.NET
- - Windows Script Components
[General Forum]
- - Other Programming/Scripting Languages
- - Suggestions & Feedback
- - Off-Topic Lounge
New Messages
No New Messages
Hot Topic w/ New Messages
Hot Topic w/o New Messages
Locked w/ New Messages
Locked w/o New Messages
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
Forum Software ©
ASPPlayground.NET
Advanced Edition
2.5.5 ANSI