TDataSet 对象

继承自 TComponent 对象。

属性 说明
Active 是否激活
AggFields 111
AutoCalcFields  
Bof  
Bookmark  
DataSetField  
DefaultFields  
Designer  
Eof  
FieldCount 字段数
FieldDefList  
FieldDefs  
FieldList  
Fields[n] 按序号取字段,Field 对象
FieldValues  
FilterOptions  
Found  
IsUniDirectional  
Modified  
Name  
ObjectView  
SparseArrays  
State  
方法 说明

ActiveBuffer()

 

Append()

添加记录 

AppendRecord

 

Cancel

 

CheckBrowseMode

 

ClearFields

 

Close()

关闭连接

ControlsDisabled

 

CursorPosChanged

 

Delete

 

DisableControls

 

Edit

 

EnableControls

 

FieldByName('字段名')

按名称取字段,Field 对象

FindField

 

FindFirst

 

FindLast

 

FindNext

 

FindPrior

 

First

 

FreeBookmark

 

GetBookmark

 

GetCurrentRecord

 

GetDetailDataSets

 

GetFieldList

 

GetFieldNames

 

GotoBookmark

 

Insert

 

InsertRecord

 

IsEmpty

 

IsLinkedTo

 

Last

 

MoveBy(n)

移动记录,相对值

Next

 

Open

 

Post

更新记录

Prior

 

Refresh

 

Resync

 

SetFields

 

Translate

 

UpdateCursorPos

 

UpdateRecord

 

UpdateStatus

 

Field 对象

属性/方法 说明
AsBoolean 取布尔值
AsCurrency 返回金额值
AsDateTime 返回日期时间值
AsFloat 返回浮点值
AsInteger 返回整数值
AsSQLTimeStamp 返回时间戳值
AsString : String 返回字符串值
AsVariant 返回 Variant 值
FieldName 字段名
FieldNo 字段序号