There is no function, but you can try this.
FUNCTION DaysOfMonth(pnMonth, pnYear)
pnMonth=IIF(empty(pnMonth), month(date()), pnMonth)
pnYear=IIF(empty(pnYear), year(date()), pnYear)
RETURN Day(goMonth(date(pnYear, pnMonth, 1), +1) - 1)
Stuart Reid
True nobility lies not in being superior to another man, but in being superior to one’s previous self