Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
That's a smiley way to start your day
Message
De
29/02/2000 13:05:28
 
 
À
29/02/2000 12:58:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00339259
Message ID:
00339267
Vues:
15
>Ok, here's the story.
>
>I have this function which adds one year to today's date for those not having a PUTM which have paid since midnight. This morning, I had several to approve. However, it took me a few minutes to understand why the date was not showing while I was approving those transactions. It works for those having taken a PUTM for one month as it brought them to March 29, 2000. However, it didn't work for those having taken a PUTM for a year which would have brought them to Feb 29, 2001. Then, I realized there won't be such a date for the next 3 years. So, if the date is not valid, it's a blank date which was put in the field, as per the current coding.
>
>Oh well, that's just one of those situations. lol
>
>BTW, anyone has a function to take care of that? I don't want to reinvent the wheel. :)

How about:

dRenewDate = GOMONTH(dExpireDate,12)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform