At 12:21 +0700 07/24/2002, Chaiya Whangmongkollert wrote:

>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 ...

Case would work here, methinks, plus doing a little variable setting:

   on mouseUp
     sText = member("test").text
     case ( sText ) of
       "0044": BEEP
               go "1"
       "0045": BEEP
               go "2"
       "0046": BEEP
               go "3"
       "0047": BEEP
               go "4"
       otherwise
         ALERT "Sorry!"
     end case
   END mouseUp

Does that help any?

-- 

              Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
        Author | Director 8.5 Shockwave Studio: A Beginner's Guide
                    Published by Osborne/McGraw-Hill
         http://shop.osborne.com/cgi-bin/osborne/0072195622.html
[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