[Quote=ADO 2.5 API 参考]NumericScale 属性
指示 Parameter 或 Field 对象中数字值的范围。
设置和返回值
设置或返回 Byte 值,指示数字值要精确的小数位数。
说明
使用 NumericScale 属性来确定数字型 Parameter 或 Field 对象的值的小数位数。
对于 Parameter 对象,NumericScale 属性为读/写。
对于 Field 对象,NumericScale 通常为只读。但是,对于已追加到 Record 的 Fields 集合中的新 Field 对象,只有当 Field 的 Value 属性已被指定并且数据提供者通过调用 Fields 集合的 Update 方法成功添加了新的 Field 时,NumericScale 才为读/写。
[/Quote]
[Quote=ADO 2.5 API 参考]
Precision 属性
指示 Parameter 对象中的数字值的精度或数字型 Field 对象的精度。
设置和返回值
设置或返回 Byte 值,指示表示值的最大位数。
说明
用 Precision 属性确定表示数字型 Parameter 或 Field 对象值的最大位数。
对于 Parameter 对象,该值为读/写。
对于 Field 对象,Precision 通常为只读。但是,对于已追加到 Record 的 Fields 集合的新 Field 对象,只有当已指定 Field 的 Value 属性并且数据提供者通过调用 Fields 集合的 Update 方法成功添加了新 Field 时,Precision 才为读/写。