Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anyone have a AfterFirstBusDayOf Month function?
Message
De
16/01/2003 12:04:46
Bill Drew
Independent Consultant
Chicago, Illinois, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Anyone have a AfterFirstBusDayOf Month function?
Divers
Thread ID:
00742471
Message ID:
00742471
Vues:
65
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform