PRB: Remote View of 2.x Table Changes Numeric Field Data Type (145608)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
This article was previously published under Q145608 SYMPTOMS
When you create a remote view based on a FoxPro 2.x table and a numeric
field is present, the view will change the data type of the field to a
double that defaults to two decimal places.
CAUSE
The field type is determined by the ODBC driver in use.
RESOLUTION
Before the view is opened for a browse, issue the following command:
=DBSETPROP('<View_name.fieldname>','field','datatype','n(<nX>,<nY>)')
In this example, the <View_name.fieldname> is the name of the remote view
and field. The <nX>, <nY> in the n parameters should be replaced with the
original field size followed by a comma and then the original decimal
places.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 9/30/2003 |
---|
Keywords: | KB145608 |
---|
|