Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reminder for end of the month
Message
De
14/07/2007 09:35:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01240440
Message ID:
01240448
Vues:
14
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform