on mouseDown
j=0
repeat with i=45 to XX
if the text of member "test" =i then 
 j=j+1
 go string(j)
end if
end repeat

end



---- Original message ----
>Date: Wed, 24 Jul 2002 12:21:02 +0700 (GMT+07:00)
>From: Chaiya Whangmongkollert <[EMAIL PROTECTED]>
>Subject: <lingo-l> field text search
>To: [EMAIL PROTECTED]
>
>I'd like to do the field text search. but I have  a lot of 
data when i write code it very long.. How to change it to 
simple code ? or pretty look ...
>this is my code 
>on mouseUp
>...
>if the text of member "test" = 0044 then go "1"
>if the text of member "test" = 0045 then go "2"
>if the text of member "test" = 0046 then go "3"
>if the text of member "test" = 0047 then go "4"
>...
>if the text of member "test" = 0044 or the text of 
member "test" = 0045 or the text of member "test" = 0046 or 
the text of member "test" = 0047 then beep
>...
>
>else alert "sorry"
>end if
>end
>
> 
>
>[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!]
[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!]

Reply via email to