Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object and Control and Class
Message
 
 
À
24/03/2006 11:49:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01107358
Message ID:
01107436
Vues:
23
>Thanks a lot.
>I have New Question.Let me?
>Look at this Program:
>?{^1998-11-25} - {^1998-1-2}
>At run time I Give 327.Why?
>Bye

This is a difference between two dates. So, from January 2,1998 there are 327 days before November 25 of the same year. That sounds just right.

You may try
?{^1998-12-31} - {^1998-1-1}

that gives you 364 - number of days in a year -1.

BTW, when you pass dates in this format, it's always:

Year - Month - Date and this is the format, that VFP always recognizes (non-ambigious)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform