?DaysOfMonth(2008,3)
Function DaysOfMonth
Parameters nYear,nMonth
If Type('nYear')#'N' Or Int(nYear)#nYear Or nYear<100 Or nYear>9999
Return -1
EndIf
If Type('nMonth')#'N' Or Int(nMonth)#nMonth Or !Between(nMonth,1,12)
Return -2
EndIf
lnDate=Date(nYear,nMonth,1)
Return Day(Gomonth(ldDate,1)-Day(Gomonth(lnDate,1)))