December 7th, 2004, 07:14 PM
Turning Chr() Around.
I need my application to have something that works like Asc() does in VB6. This is the exact opposite of Chr(). Instead of using chr() to get me the number of a certain character(s), I need something like Asc() to give me back the numbers instead of the character(s).
December 7th, 2004, 08:25 PM
Use the ord() function, or define your own asc function.
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
December 8th, 2004, 07:07 AM
December 8th, 2004, 04:17 PM
If you want to create copies/aliases to built-in functions/modules/classes using custom names the simplest way to do it is to assign the object to a variable i.e.
Originally Posted by Scorpions4ever
>>> someChar = chr(97)
>>> asc = ord