match not working

Dan Shafer revdan at danshafer.com
Tue Mar 22 00:19:59 EST 2005


Paul....

There are a couple of potential problems here.

First, "me" is a reserved Revolution keyword (see the Dictionary in the 
docs).

Second, whatever you decide to replace "me" with needs to be a global 
variable or both handlers can't access its value.

Dan

On Mar 21, 2005, at 8:28 PM, Paul Salyers wrote:

> on rawKeyUp
>   if the number of chars in me = the number of chars in field 
> "MyField" then JobIsDone --
> end rawKeyUp
> ------------------------------------
> on JobIsDone
>   if me = field "MyField" then
>     put field "MyField" into field "MyName"
>   else beep
>   go to card 1
>   if end
> end JobIsDone
>
> Dear Rev Programmer,
>
> I'm trying to get this code to work. "me" is a input text box, 
> "MyField" has 7 characters in it.
>
> When 7 characters are typed in me then it goes to function "JobIsDone"
>
> JobIsDone compares me with "MyField" and if they are alike then in 
> puts "MyField" in "MyName"
>
> if it's not the same then it will go to card 1
>
> this line is not working:
>
>  field "MyField" into field "MyName"
>
> it's going to card 1 but I'm typing the correct 7 characters.
>
>
> Paul Salyers
> PS1 - Senior Rep.
> PS1 at softseven.org
> Http://ps1.SoftSeven.org
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list