Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT Z truncates data (bug?)
Message
From
01/09/2005 11:05:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/09/2005 10:36:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01045820
Message ID:
01045842
Views:
25
>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 ?

Andrus,
I didn't understand what you're trying to do. Anyway you can fix it:
1) If you want to fix in select:
SELECT m.z+0 from tt INTO CURSOR t
2) If you want to fix at tt level:
CREATE CURSOR tt ( z n(14,2) )

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform