Hello sam,
This is my way of converting a string to lowercase/uppercase
-- to uppercase
on mouseUp
convertedString = upperCase("ramesh")
end
-- to lowercase
on mouseUp
convertedString = lowerCase("RAMESH")
end
----movie script
on upperCase string
newString = ""
repeat with x = 1 to the number of chars in string
if charToNum(string.char[x]) >= 97 AND charToNum(string.char[x]) <= 122
then
put numToChar(charToNum(string.char[x]) - 32) after newString
else
put string.char[x] after newString
end if
end repeat
return newString
end
on lowerCase string
newString = ""
repeat with x = 1 to the number of chars in string
if charToNum(string.char[x]) >= 65 AND charToNum(string.char[x]) <= 90
then
put numToChar(charToNum(string.char[x]) + 32) after newString
else
put string.char[x] after newString
end if
end repeat
return newString
end
HTH
regards
Ramesh C T
-----Original Message-----
From: sam <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, October 06, 2000 5:39 PM
Subject: Re: <lingo-l> uppercase
>Thanks for that - looks neat (to be used in the English not the American
>sense)
>
>Apart from that, I realised my gender bender almost as soon as the post had
>gone - tried to correct myself before anyone else did but you beat me to
it!
>
>soz for any offence ;-)
>
>================================================================
>
>= elektonika =
>= just another nu-meeja company =
>= www.elektonika.co.uk = = [EMAIL PROTECTED] = = www.mustardpot.com =
>
>STANDARD DISCLAIMER: This message is confidential. You should not copy it
or
>disclose its contents to anyone. You may use and apply the information only
>for the intended purpose. Internet communications are not secure and
>therefore Elektonika does not accept legal responsibility for the contents
>of this
>message. Any views or opinions presented are only those of the author and
>not those of Elektonika. If this email has come to you in error please
>delete it and
>any attachments.
>
>
>[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!]
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
[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!]