Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox Value property disappears
Message
 
 
To
01/11/2002 08:02:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00717555
Message ID:
00717740
Views:
16
Hi Alan,

When date is set to LONG or SHORT VFP uses Windows API functions to do date manipulations. That's where {^1600-01-01} restriction comes from. My guess is that DTOS() still works in this case because it wasn't changed to use WIN API.

I cannot remember where I read explanation

>Very strange. For whatever reason, as you pointed out, with date set to short in VFP7, DTOC({01/01/1600}) resolves to an invalid date. Even doing this:
>
x = {01/01/1600}
>? x
>
>gives an invalid date on the second line.
>
>BUT VFP7 has no problems at all with
>
? DTOS({01/01/1600})
>
>Some weird bug huh?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform