match not working

Paul Salyers ps1 at softseven.org
Tue Mar 22 00:45:18 EST 2005


ME is where I type in a input from the keyboard, using a text field, can't 
it be used like that?

At 11:19 PM 3/21/2005, you wrote:
>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




More information about the use-livecode mailing list