Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Anyone have a AfterFirstBusDayOf Month function?
Message
From
16/01/2003 12:04:46
Bill Drew
Independent Consultant
Chicago, Illinois, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Anyone have a AfterFirstBusDayOf Month function?
Miscellaneous
Thread ID:
00742471
Message ID:
00742471
Views:
64
If we assume the January is the only month that can be exceptional, can you give me a logical construct to know if x date after the first business day of the month.

I have been using something like this. But the blood sugar must be low cause i need a little help. Getting confused with Jan.
LPARAMETERS indate
LOCAL lAfterFirBusDay
DAYOFWEEK = DOW(indate-DAY(indate)+1)
DO CASE
CASE DAY(indate) = 1
	lAfterFirBusDay = .f.
CASE dayofweek = 2 AND DAY(indate) < 4
	lAfterFirBusDay = .f.
OTHER
        lAfterFirBusDay = .t.
endc
retu lAfterFirBusDay
Next
Reply
Map
View

Click here to load this message in the networking platform