Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function returning total number of days in month
Message
From
28/03/2006 07:53:33
 
 
To
28/03/2006 07:25:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01108295
Message ID:
01108302
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform