If performance becomes an issue,
a big case statement might execute faster (no conversions)
-Buzz
At 3:39 PM +0200 7/4/01, Milo Mineur wrote:
>Thanx Pranav!
>
>works perfect.
>(I was searching for a function instead the solution)
>
>
>Milo
>
>
>
>on UCase(MyChar)
> -- Convert the character to ascii
> vAscii = charToNum(MyChar)
> -- The lower case alphabet lies between
> -- ASCII values of 97 and 122
> if vAscii >= 97 AND vAscii <= 122 then
> -- The value of the uppercase alphabet
> -- is 32 characters less than its corresponding
> -- lowercase character
> vAscii = vAscii - 32
> end if
>
>return numToChar(vAscii)
>
>end mUCase
>
>
>[To remove yourself from this list, or to change to digest mode, go to
>http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
>email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
>Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]