Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT Z truncates data (bug?)
Message
De
01/09/2005 11:05:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
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:
01045842
Vues:
23
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform