Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Kooky date handling now in VFP too
Message
De
19/09/1998 22:48:49
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
 
À
19/09/1998 19:29:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00138725
Message ID:
00138739
Vues:
18
Hmmm! interesting - I get 8 0 8 as the results and yet it works ok in the command window. Using VFP 5.0

>I thought the date problem I was having was restricted to FPW. But try this in a VFP program
>
>Test.prg
>set date mdy
>x= {1/8/1998}
>? month(x) && => 1
>set date ymd
>x= {1998/8/1}
>? month(x) && => 0
>set date dmy
>x= {1/8/1998}
>? month(x) && => 1
>
>x= {^1998/08/01}
>? month(x) && => 8
>set date mdy
>* EOF
>
>Pretty awful.
***************************
Bruce Gilmour

"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform