Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decimal Format blues
Message
De
28/11/2012 14:48:12
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
28/11/2012 13:50:25
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows NT
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01558266
Message ID:
01558272
Vues:
57
>>I'm getting this error from a vb.net access via oledb
>>
>>"The provider could not determine the Decimal value. For example, the row was just created, the default for the Decimal column was not available, and the consumer had not yet set a new Decimal value."
>>
>>It happens when you allow VFP to store an n(6.1) amount in an n(6.2) specified field. For example 1 000.5 will fit in a n(6,2) field. But when you try to retrieve that via oledb you get the above error message. The workaround is a) redefine the field as n(7,2) of course, or b) get the field as a string in the SQL.
>>
>>I was wondering if there was an even smarter way to trap this.
>>
>>Thanks for caring and kind regards,
>>
>>Marc
>
>
>Just don't allow such things to happen.

And a good way to do this is to specify the structure on the target, i.e. roll your own fields, as in the schema related properties of the cursoradapter. Specially if you control the source, and IIRC Marc may be importing data from third party tables.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform