Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
First day of six month ago
Message
De
11/10/2007 11:14:44
 
 
À
11/10/2007 02:34:42
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:
01257910
Message ID:
01260310
Vues:
15
>>>
>>>ldDate = DATE()
>>>? GOMONTH(ldDate - DAY(ldDate) + 1, -6)
>>>
>>>
>>>>Easiest and simple function.. for first day of six months ago.. is?
>>
>>humm... much better than Silvain's.. and also clean.. I'll change the choise of star...
>>
>>Sorry and also thanks Sylvain
>>
>>what about
? GOMONTH(DATE() - DAY(DATE()) + 1, -6)
>
>If you call it at 11:59:59.999 you can get a wrong result.

wow!! ROFL...

well, let's estimate that math possibility, hummm lets see:

numbers users X numbers of mil. of seconds in a day X numbers of routines for a same user it will be same as 1 to 'oops, may my calculator broke???'... well, here we go: a PI number..

So, what about?
DO WHILE time()="11:59:59.999"
   ? "Waiting"
enddo
? GOMONTH(DATE() - DAY(DATE()) + 1, -6)
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform