ADO 레코드 개체


레코드 개체(ADO 버전 2.5)

ADO 레코드 개체는 레코드 집합, 디렉터리 또는 파일 시스템의 파일에 있는 행을 유지하는 데 사용됩니다.

2.5 이전 버전의 ADO에서는 구조화된 데이터베이스에만 액세스할 수 있었습니다. 구조화된 데이터베이스에서 각 테이블은 각 행에 정확히 동일한 수의 열을 가지며 각 열은 동일한 데이터 유형으로 구성됩니다.

Record 개체를 사용하면 열 수 및/또는 데이터 유형이 행마다 다를 수 있는 데이터 세트에 액세스할 수 있습니다. 


통사론

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

Fields 컬렉션의 속성

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)
or
itemfields = rec.Fields.Item("Name")