Article ID: 140303
Article Last Modified on 3/24/2000
CREATE DATABASE decimal
CREATE TABLE decimal (afloat f(10,5), anumeric n(10,5), ;
adouble b(5), acurrency y(10,4))
SET DECIMALS to 3
=DBSETPROP("rem_dec.anumeric","field","datatype","N(10,2)")
* The number of decimal positions displayed is still three. If the
* insertion point is placed on that field, the record highlighted will
* show two decimal positions.
=DBSETPROP("rem_dec.adouble","field","datatype","B(10,2)")
* The number of decimal positions displayed changes to two.
=DBSETPROP("rem_dec.acurrency","field","datatype","Y(10,2)")
* Trying to browse the view will produce the error message "Datatype
* property for field 'acurrency' is invalid." Resetting the number of
* decimals to four will allow the view to be browsed again.
=DBSETPROP("rem_dec.afloat","field","datatype","F(10,2)")
* The field displays asterics. Using N instead of F allows the field
* to be viewed, but the results will be the same as they were for the
* numeric field.
Keywords: kbbug kbfix kbvfp500fix KB140303