Here's one of the most obfuscated Lingo-based case converter functions I've
ever come across. It does conversion to upper or lower case. The parameter
"uc" is TRUE if it is to be upper case, FALSE if lower.

on cc uc, s1
  repeat with i = 1 to s1.length
    c = chartonum(s1.char[i])
    s2 = s2 & numtochar([c,c+[32,-32][(uc+1)]][[(c>=65 and c<=90),(c>=97 and
c<=122)][uc+1]+1])
  end repeat
  return s2
end

Christopher Watson
Lightspan, Inc.


-----Original Message-----
From: John Horn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 8:38 AM
To: Lingo Group
Subject: <lingo-l> Convert String


Anyone know of an easy way to convert a string that is lowercase ie "this is
the string" to uppercase through Lingo ie "THIS IS THE STRING"

Thanks

-------------------------
John Horn
Interactive/Web Developer
[EMAIL PROTECTED]

Graphica
www.graphicadesign.com
937-866-4013 x.150
-------------------------


[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!]

Reply via email to