Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Option for date of week
Message
From
13/10/2005 12:28:10
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01057746
Message ID:
01058746
Views:
10
Hi George,

>IF MyTable.DayOfWeek = DOW(DATE(), 2) THEN
> * Do your processing.
>ENDIF

Good point.

Naomi,

if you insist on the field containing the right values, simply rename the field to
nDayOfWeekMinusOne, then store 1 to 5 in it when meaning 2 to 6. and then do:
IF MyTable.nDayOfWeekMinusOne+1 = DOW(DATE()) THEN
  * Do your processing.
ENDIF
Just joking ;-)

In fact the numbers 1 to 5 would better fit the optiongroup control, but you may have to change much code with the data change, either by adding one to that new day number or by comparing with DOW(Date(),2). Even setting FDOW to another value doesn't help, because for DOW() to use that setting you'd have to change the call to DOW(Date(),0), as FDOW is not automatically evaluated.

Bye, Olaf.
Previous
Reply
Map
View

Click here to load this message in the networking platform