ค่า NumericScale ของ ADO

การรับรู้และการใช้งาน

ค่า NumericScale ของ Property ตั้งหรือกลับค่า Byte ที่ชี้ว่าค่าจำนวนของ Field หรือ Object Parameter ต้องการแน่นอนของตัวเลขที่เป็นเศษทศนิยม。

วัตถุ การอธิบายค่า NumericScale
Field

สำหรับเป้าหมาย Field ค่า NumericScale ทั่วไปเป็นการอ่านเฉพาะ。แต่สำหรับ Field โอปเจ็คที่เพิ่มเข้าไปในชุด Fields ของ Record ค่า NumericScale มีความเป็นอ่าน/เขียนเมื่อค่า Property Value ของ Field ได้ถูกกำหนดและผู้ให้บริการข้อมูลที่เรียกเมื่อเพิ่ม Field ใหม่ด้วยวิธี Update ของชุด Fields ประสบความสำเร็จ。

Parameter สำหรับเป้าหมาย Parameter คุณมีสิทธิ์เข้าอ่านและเขียนคุณสมบัติ NumericScale

ภาษา

object.NumericScale

ตัวอย่าง

<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/webdata/northwind.mdb"
set rs = Server.CreateObject("ADODB.Recordset")
rs.open "Select * from orders", conn
response.write(rs.Fields(0).NumericScale)
rs.Close
conn.close
%>