Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anyone have a AfterFirstBusDayOf Month function?
Message
De
17/01/2003 10:24:46
 
 
À
17/01/2003 04:15:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00742471
Message ID:
00742878
Vues:
30
Hi Cetin,

It looks right for January now. The code I posted covers all possibilities for Labor Day. Bill has gone with a table approach, so its a moot point :)


>No problem :) I was in a hurry to leave yesterday and placed fix in wrong place :) Revised version :
>
>
>? Indate > FirstBizDay(Indate)
>
>FUNCTION FirstBizDay
>LPARAMETERS ldDate
>LOCAL FDOM
>FDOM = ldDate - Day(ldDate) + 1 + iif(month(ldDate)=1,1,0)
>RETURN FDOM + IIF(DOW(FDOM,2)>5, 8-DOW(FDOM,2), 0)
>
>Labor day being 1st monday wouldn't make Sep 2 first biz day. It is in the list of 'holidays'.
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform