Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT Z truncates data (bug?)
Message
 
À
01/09/2005 10:36:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01045820
Message ID:
01045825
Vues:
15
I am afraid you want to work with integers like with numeric and you are pushing the limit of the VFP integer. The integer can hold up to 10 digits: 2,147,483,647
Z=0000000000000
CREATE CURSOR tt ( t l )
APPEND BLANK
SELECT z from tt INTO CURSOR t
MODIFY STRUCTURE
* it is 10 as expected.
>To reproduce
>
>
Z=00000000000.00
>CREATE CURSOR tt ( t l )
>APPEND BLANK
>SELECT z from tt INTO CURSOR t
>MODIFY STRUCTURE
>
>observed: Width is 13
>expected: Width must be 14
>applies to Vfp 9, Vfp 7
>
>note: SELECT 00000000000.00 from tt INTO CURSOR t works as expected
>
>I have a lot of SELECT Z ...
>statements in my application and customer scripts.
>
>Please advice how to fix this without re-writing all SELECT statements in aplivcation and forcing all customers to re-write all scripts ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform