Man-wai
Thu Mar 29 06:53:43 CDT 2007
> dldate=date(2000,05,25)
> now if i substract the dldate from current date ie.
> x=date()-dldate
> it will give result no of days
Is it the way your user wants? or is it:
function months
lparameter m.ldDate, m.ldCutDate
local m.lnCount
m.lnCount=0
do while m.ldDate <= m.ldCutDate
m.ldDate=gomonth(m.ldDate,1)
m.lnCount=m.lnCount+1
enddo
return m.lnCount
> but i want no of months in a single statement.
> if any function is available in VFP6 or any other way to get it.
If you write a user-defined function... :)
--
.~. Might, Courage, Vision, SINCERITY.
http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.20.4
^ ^ 19:48:01 up 5 days 7:00 0 users load average: 1.09 1.03 1.00
news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk