Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET DECIMAL TO 0 and Views
Message
 
 
À
27/03/2001 11:09:37
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00488974
Message ID:
00489131
Vues:
9
Jerry,

Where did you open your view first? In DataEnvironment? You have to set set decimals to 0 in BeforeOpenTables of DE.

HTH

>Cindy,
>
>I SET DECIMAL TO 0 in the LOAD() of my form. This is working. The problem is that the view's 1 numeric field is being created with decimal of 2. When browsing the view in the form's datasession, the decimals are hidden but why is this view's field created with a decimal of 2 in the view's structure? This can be seen with DISPLAY STRUCTURE.
>
>However, from the command window, if I SET DECIMAL TO 0, USE myview, DISPLAY STRUCTURE, the view's field does Not have any decimals in the view's structure.
>
>I'm not sure what the difference is.
>
>Thanks,
>
>Jerryt
>
>
>
>>Jerry,
>>
>>From Help:
>>
>>"SET DECIMALS is scoped to the current data session."
>>
>>
>>
>>
>>>Why does this view's field have no decimal in the command window, but 2 decimals in the form?
>>>
>>>I use DISPLAY STRUCTURE to see if the view's field has a decimal or not.
>>>
>>>The SET DECIMAL TO 0 hides the decimal but why is the view's structure different in the command window vs the form?
>>>
>>>Thanks,
>>>
>>>Jerryt
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform