Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Decimal places not showing....
Message
From
29/01/2002 03:12:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Decimal places not showing....
Miscellaneous
Thread ID:
00612031
Message ID:
00612031
Views:
56
We have an app that uses VFP remote views to access our Oracle DB using ODBC. If we browse one of these views that contain decimal numbers we can see the values to the right of the decimal place, but if we open this view into a workspace (or whatever you call them) i.e.

use myremoteview in 0 alias remview

and try to do anything with these decimal values then the values to the right of the place holder vanish.

So lets say my column DecCol has the value 2.345. If I do :

select remview

messagebox(DecCol)

it displays 2. If I set SET FIXED ON it shows 2.0.

To add a bit more spice, if we say that this view is updateable and we change the column value to 3.456 and save, there is no problem. It is literally just when we try and manipulate the column in any way that this occurs. The only time we can 'see' the full decimal value is in a browse window.

We have tried it on different machines, recreating the connection and views (even using gendbc). The behaviour seems consistent.

The oracle data-type is a plain old NUMBER(12,4).

Any help would be greatly appreciated.

Pablo
Next
Reply
Map
View

Click here to load this message in the networking platform