Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Month Calculations
Message
From
26/04/2001 13:02:13
 
 
To
23/04/2001 20:20:10
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00498208
Message ID:
00500235
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform