Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT Z truncates data (bug?)
Message
 
To
01/09/2005 10:36:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01045820
Message ID:
01045825
Views:
16
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 ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform