Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Kooky date handling now in VFP too
Message
 
 
To
19/09/1998 19:29:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00138725
Message ID:
00138728
Views:
11
>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.

What version of VFP? I just installed VFP 6 and no longer have the earlier versions installed. VFP 6 give an ambiguous date error on all the examples you gave.
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform