Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why empty date in VFP has entry in .NET?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00907017
Message ID:
00907364
Views:
9
I think this is cause the VFPOLEDB return a vaue of 0 rather then NULL to support empty dates in VFP.

Returning 0 causes .Net to store the beginning of time or "12/31/1899 12:00 00000" where NET actually store System.DbNull.value as an empty date.

In my OleDbDataAdapter i will use a string like this to fill NULL data values into my dataset.

"IIF(EMPTY( dCreated ), null, dCreated ) as DateCreated"

I have used it on VFP6,7,8 using the VFPOLEDB 8 driver.

- jim


>I retrieve a row from a VFP table, as datareader, where a date field has not entry (in VFP). But when I look at it in ASP.NET the date is there and it is 12/30/1899. I know I didn't enter any data in 1899 <g>. Who did?
>
>TIA.
- jim durkin

"The universe is a big place, perhaps the biggest." Kurt Vonnegut
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform