Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Month Calculations
Message
De
26/04/2001 13:02:13
 
 
À
23/04/2001 20:20:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00498208
Message ID:
00500235
Vues:
23
Thanks Mario -
We need to take into account the day, this is the problem. I do however believe we have an answer.

This is what we have done:
check_out="N"
e_date=m.enterdate
t_date=m.trandate
incr_month=0
Do while check_out="N"
testMonth=Gomonth(e_date,incr_month)
If testMonth >= t_date
if testMonth = t_date
incr_month=incr_month +1
endif
if incr_month=0
incr_month=1
endif
Out="Y"
Exit
else
incr_month=incr_month +1
Loop
endif
Enddo
new_profile=incr_month


Larry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform