Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How many weeks in a month
Message
De
06/11/2007 15:53:47
 
 
À
06/11/2007 15:43:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01266837
Message ID:
01267121
Vues:
16
>Based on the procedure you sent me before:
>
>lnMonth = 10
>lnYear = 2007
>ldFirstOfMonth = DATE(lnYear, lnMonth, 1)
>lnWeeksPerMonth = MOD(WEEK(GOMONTH(ldFirstOfMonth,1),0,2)+52 - WEEK(ldFirstOfMonth,0,2), 52)
>? lnWeeksPerMonth
>
>
>Carlos Burgos

Carlos,

please read this carefully.

In my first answer to you, I tried to explain to you that there are many ways to define a week. We have tried to ask you many, many times how you define a week, but you still have not tried to explain ahat is your definition of a week? It doesn't help us a bit when you tell us that our answers are wrong, as long us you don't tell us WHY they are wrong. Comprende?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform