match not working
Paul Salyers
ps1 at softseven.org
Mon Mar 21 23:28:09 EST 2005
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