> >
>> Did anybody of you guys do that before?
>
>Sure, in English it's a snap, but I you'll need to do some 1 to 1 mapping
>for German (though probably not *too* much). For the English a to z, the
>following will do it:
A lot of people do it the way that Kurt suggests, but I never do.
It's much simpler to do this:
on lowerToUpperCase stringIn
uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
repeat with a = 1 to stringin.char.count
c = offset(stringin.char[a],uppercase)
if c > 0 then put uppercase.char[c] into stringin.char[a]
end repeat
return stringin
end
If you then want to take care of special characters, just change the
uppercase line:
uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ������"
Of course, neither of our answers give you a solution to your
question, which is how to pass the uppercase letter to the field.
This routine would take care of that (it would be a script on the
field sprite):
on keydown me
m = the member of sprite the currentspritenum
uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ������"
c = offset(the key,uppercase)
if c > 0 then
put char c of uppercase after char the selstart of member m
set the selstart = the selstart + 1
else
pass
end if
end
Even then there are difficulties, as you'll discover if you select a
range of characters. That can be taken care of as well, but try to
get this far before asking how!
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/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!]