Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reminder for end of the month
Message
From
14/07/2007 09:35:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01240440
Message ID:
01240448
Views:
13
>thanks hilmar your helpful reply, but i have a question, if last date on leave day(sunday etc).how to changes this.
>
>I want to print a report.
>
>If month(date()+ 1) # month(date())
>print from 1st report
>else
>report from 2nd report
The dow() function will tell you the day of week. You can act accordingly; print the second report as stated, or (if you generate a table of events) adjust for another day.

By default, dow() will return 1 for Sunday, 2 for Monday, etc.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform