May be shorter but it may be better:

on mouseup
zorro = value(member("test").text)
case (true) of
(zorro < 48 and zorro > 43):
beep
go Zorro - 43
end case
end mouseup

Jean-louis valero

Message: 16
Date: Wed, 24 Jul 2002 12:21:02 +0700 (GMT+07:00)
From: Chaiya Whangmongkollert <[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!]

Reply via email to