As suggested, a case statement is an option.
Or, to do it the way you're doing, you have to do it a little
different. Each and/or must have a full expression on each side, so it'd
be more like this:
if (gTheFullDate = "01/04/1999") or (gTheFullDate = "01/05/1999") or
(gTheFullDate = "01/07/1999")) then
-- whatever
end if
Also note that the full date format may differ depending on which country
setting the user has. In Europe it might report as "07/01/1999" (day
first) as opposed to the US (month first).
- Tab
At 04:26 PM 3/8/01 -0500, Gene Fritzinger wrote:
>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
>
>Forgive me, I'm fairly new to Lingo. What I'm trying to do is, round back
>to the previous Sunday of any week entered by the user. I'm sure there
>must be many betters ways to do this, and any suggestions would be much
>appreciated.
>
>Thanx in advance!!
>G Fritzinger
[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!]