> Hi List,
> Is there some way to construct an if..then statement that allows for
multiple correct if s?
> My first instinct was to do something like the following:
>
> if gTheFullDate = "01/04/1999"  or "01/05/1999" or "01/06/1999" or
"01/07/1999" or "01/08/1999"  then
>     member("ReportPeriod_From").text = "01/03/1999" --change to date of
previous Sunday

try the case statement:

case gTheFullDate of
   "01/04/1999", "01/05/1999", "01/06/1999", "01/07/1999","01/08/1999"  :
member("ReportPeriod_From").text  =   "01/03/1999"  -- watch for line breaks
 "02/06/2002" : statement(s)
  (any many as you need)
otherwise -- handle all other conditions
    member("ReportPeriod_From").text = "Dog"
end case

check out the lingo dictionary for more info on case statements...

good luck,
Nick Youmans
FutureMedia


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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