Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 8 date handling bug?
Message
From
08/12/2003 14:56:18
 
 
To
08/12/2003 14:40:12
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00856898
Message ID:
00856928
Views:
39
I should've put it in the original post, but NOTIFY is indeed OFF but VFP still throws the error. I did some testing before and NOTIFY doesn't seem to have any effect either way (ON or OFF). I read somewhere that NOTIFY is supposed to have an effect of some sort.

I'm sure some one else has wrestled with this.

Thanks,
Chris

>Not a bug and not a STRICT DATE issue. SET NOTIFY OFF will solve the message, but you still won't be able to leave the text box.
>
>
>>We're having a problem with the date handing in VFP 8. In VFP 8, if you have a bound text box with a date and you enter an invalid date and try to leave the field (12/01/203 for instance) VFP 8 immediately throws a "Date/datetime evaluated to an invalid value" error. In VFP 6 the bad date is written to the table, but does not display in the text box once the text box loses focus. But more importantly, you don't get an error.
>>
>>One odd thing is that the docs say that StrictDateEntry=1 (strict) will throw an error for invalid date, but the 0 setting (loose) will not. However, either setting will actually throw an error. The worst part is, the error is raised before Valid or LostFocus is called, so you can't test the date first.
>>
>>On top of that, VFP 6 behaved differently.
>>
>>This is causing problems since we use text boxes to edit date fields (both bound and unbound) and they will now cause errors if we update to VFP 8. Of course this can be worked around with an error handler, or translating dates to characters for editing.
>>
>>I was wondered if anyone else had come up against this? If so, is there a switch or something that might cause VFP 8 to behave like 6?
>>
>>Thanks,
>>CHris
Previous
Reply
Map
View

Click here to load this message in the networking platform