Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reminder for end of the month
Message
De
14/07/2007 12:28:31
 
 
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:
01240461
Vues:
14
Hi,

FWIW this will also give the date of the last day of the month:
LastDayOfMonth =  GOMONTH(DATE(),1)-DAY(GOMONTH(DATE(),1))
But, as I think you realised, this type of solution will not work unless the code is run *every* day. Your best bet is probably to follow Hilmar's suggestion and use a table with end of month dates and a flag indicating whether that particular monthly report has been printed.
HTH,
Viv

>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform