Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Force Calculated Field to Type Integer in View?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00727704
Message ID:
00728113
Vues:
16
Hello again ..

i've tested a bit more now .. in VFP 8 this limitation seems to be taken away ..

i was able to do a DBSETPROP('view.field','field','datatype','I')
on a local view and it kept the parameter .., but the conversion with INT() on the calculation was needed so the view really don't displays the decimal places .. (but it didn't crash when the INT() was not used, it just displayed the decimal places .. and at the same time DBGETPROP returned 'I' for the Datatype) ..

a cursoradapter with a INT() around the calculation and without any CursorSchema set seems to know that it's gonna be an integer and directly maps it correct

a cursoradapter without a INT() but with the cursorschema set to 'I' for the calced column didn't work at all when trying to fill it with CursorFill(.t.,.f.) (aerror -> Result is incompatible with cursor schema) - this one made me wonder since it wouldn't be a problem to do a implicit conversion to Int wouldn't it? and what is even more strange that the same thing on remote data works just nice ..


ok ... enough inconsistency for now :)

but hey, better inconsistent feature richness than consistent limitation ..
wouldn't you agree

Regards

Christian
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform