How are you calling it?

Just having the handler there doesn't magically do anything.  You'd have to 
do something like:

myText =the text of member "userData"
myText =ForceUppercase(myText)
set the text of member "userData" to myText

Are you doing anything like that?  If so, what happens?

Also, remember you have a debugger available.  It's good experience to set 
a breakpoint at the top of the handler and step through it to see what's 
happening.

- Tab


At 02:32 AM 4/10/01 +0000, N. Taylor wrote:
>To the List:
>
>I just tried to take this Director Help script and turn it into a small 
>movie.  I created a textbox with symbols & characters in it and I made a 
>small mouse Up button that calls this handler.  I put this script into a 
>movie script, and I was hoping that this would go through the text in the 
>textbox and delete characters that aren't letters and turn all letters 
>into Capitals.  (That's what Director Help says it should do.)
>
>What's wrong?  (It's not working.)
>
>on ForceUppercase input
>         output = EMPTY
>         num = length(input)
>         repeat with i = 1 to num
>                 theASCII = charToNum(input.char[i])
>                 if theASCII = min(max(96, theASCII), 123) then
>                         theASCII = theASCII - 32
>                         if theASCII = min(max(63, theASCII), 91) then
>                                 put numToChar(theASCII) after output
>                         end if
>                 end if
>         end repeat
>         return output
>end
>
>
>-NT
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.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!]
>


[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