วัตถุบันทึก ADO
บันทึกวัตถุ (ADO เวอร์ชัน 2.5)
ออบเจ็กต์ ADO Record ใช้เพื่อเก็บแถวในชุดระเบียน ไดเร็กทอรี หรือไฟล์จากระบบไฟล์
ADO เข้าถึงได้เฉพาะฐานข้อมูลที่มีโครงสร้างในเวอร์ชันก่อนหน้า 2.5 ในฐานข้อมูลที่มีโครงสร้าง แต่ละตารางมีจำนวนคอลัมน์เท่ากันในแต่ละแถว และแต่ละคอลัมน์จะประกอบด้วยประเภทข้อมูลเดียวกัน
ออบเจ็กต์บันทึกอนุญาตให้เข้าถึงชุดข้อมูลซึ่งจำนวนคอลัมน์และ/หรือประเภทข้อมูลอาจแตกต่างกันไปในแต่ละแถว
ไวยากรณ์
objectname.property
objectname.method
คุณสมบัติ
Property | Description |
---|---|
ActiveConnection | Sets or returns which Connection object a Record object belongs to |
Mode | Sets or returns the permission for modifying data in a Record object |
ParentURL | Returns the absolute URL of the parent Record |
RecordType | Returns the type of a Record object |
Source | Sets or returns the src parameter of the Open method of a Record object |
State | Returns the status of a Record object |
วิธีการ
Method | Description |
---|---|
Cancel | Cancels an execution of a CopyRecord, DeleteRecord, MoveRecord, or Open call |
Close | Closes a Record object |
CopyRecord | Copies a file or directory to another location |
DeleteRecord | Deletes a file or directory |
GetChildren | Returns a Recordset object where each row represents the files in the directory |
MoveRecord | Moves a file or a directory to another location |
Open | Opens an existing Record object or creates a new file or directory |
ของสะสม
Collection | Description |
---|---|
Properties | A collection of provider-specific properties |
Fields | Contains all the Field objects in the Record object |
คุณสมบัติของ The Fields Collection
Property | Description |
---|---|
Count | Returns the number of items in the fields collection.
Starts at zero.
Example: countfields=rec.Fields.Count |
Item(named_item/number) | Returns a specified item in the fields collection.
Example: itemfields=rec.Fields.Item(1) |