Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using XMLAdapter to create a dataset
Message
From
04/01/2005 20:01:02
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00973971
Message ID:
00974252
Views:
20
>It turns out it doesn't like empty date/time fields. Setting them to null instead makes everything work. I guess there is a certain logic to it, although I would have expected the XMLAdapter to handle this.<

Oh, that figures ... I should have tried it without any data in the date field. But still, I'd call that a bug with the XMLAdapter.

~~Bonnie


>>Paul,
>>
>>In Tim's reply, he mentions that it must be utf8 encoded and that you need to set
>>
>>loXMLAdapter.UTF8Encoded = .t.
>>
>>What's interesting, is that I tried using the XMLAdapter with a few different tables *without* setting the UTF8 encoding and it worked just fine. My tables had char, logical, int, decimal ... even some memos and dates. All worked fine. So, I'm curious as to what kind of data causes the format errors. Anything peculiar in the table you're using?
>>
>
>It turns out it doesn't like empty date/time fields. Setting them to null instead makes everything work. I guess there is a certain logic to it, although I would have expected the XMLAdapter to handle this.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform