求有关TField这个类的作用和使用方法的详解

suollk 2013-09-10 05:35:22
求有关TField这个类的作用和使用方法的详解
...全文
483 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
支持中文哦 2013-09-12
  • 打赏
  • 举报
回复
看帮助文档,再看看源代码,非常重要。
bdmh 2013-09-11
  • 打赏
  • 举报
回复
自己看帮助比什么都强
suollk 2013-09-10
  • 打赏
  • 举报
回复
引用 1 楼 sololie 的回复:
Pascal TField = class(TComponent); C++ class TField : public TComponent; File DB Description TField encapsulates the fundamental behavior common to all field components. It introduces the properties, events, and methods that are used to: Change the value of a field in a dataset. Convert the value of a field from one data type to another. Validate data that the user enters for a field. Define how the data in the field appears as it is displayed or edited. Calculate the value of a field from code written in the OnCalcFields event of the dataset. Look up the field's value from another dataset. Do not create instances of TField. TField descendants are created automatically each time a dataset is activated. These descendants can be dynamic (the default) or persistent. Dynamic field components reflect the columns in the underlying metadata at the time a dataset is opened. Persistent field components are created at design time using the Fields editor, which specifies the fields in the dataset, their properties, and their ordering. Creating persistent field components guarantees that each time an application runs, it uses and displays the same columns, in the same order, even if the physical structure of the underlying database changes. If a column on which a persistent field component is based is deleted or changed, the IDE generates an exception rather than opening the dataset against a nonexistent column or mismatched data. If this happens, remove the field component for the nonexistent field using the Fields editor. A field in a dataset is always treated as one of the following TField descendant classes below: TADTField TDateField TReferenceField TAggregateField TDateTimeField TSmallIntField TArrayField TFloatField TSQLTimeStampField TAutoIncField TFMTBCDField TStringField TBCDField TGraphicField TTimeField TBinaryField TGuidField TVarBytesField TBlobField TIDispatchField TVariantField TBooleanField TIntegerField TWideStringField TBytesField TInterfaceField TWordField TCurrencyField TLargeintField TDataSetField TMemoField
这个我也看了 F1帮助文档的嘛 看的稀里糊涂的 百度出来也基本上没有这个东西的线索 求能看明白的一点资料啊
sololie 2013-09-10
  • 打赏
  • 举报
回复
Pascal TField = class(TComponent); C++ class TField : public TComponent; File DB Description TField encapsulates the fundamental behavior common to all field components. It introduces the properties, events, and methods that are used to: Change the value of a field in a dataset. Convert the value of a field from one data type to another. Validate data that the user enters for a field. Define how the data in the field appears as it is displayed or edited. Calculate the value of a field from code written in the OnCalcFields event of the dataset. Look up the field's value from another dataset. Do not create instances of TField. TField descendants are created automatically each time a dataset is activated. These descendants can be dynamic (the default) or persistent. Dynamic field components reflect the columns in the underlying metadata at the time a dataset is opened. Persistent field components are created at design time using the Fields editor, which specifies the fields in the dataset, their properties, and their ordering. Creating persistent field components guarantees that each time an application runs, it uses and displays the same columns, in the same order, even if the physical structure of the underlying database changes. If a column on which a persistent field component is based is deleted or changed, the IDE generates an exception rather than opening the dataset against a nonexistent column or mismatched data. If this happens, remove the field component for the nonexistent field using the Fields editor. A field in a dataset is always treated as one of the following TField descendant classes below: TADTField TDateField TReferenceField TAggregateField TDateTimeField TSmallIntField TArrayField TFloatField TSQLTimeStampField TAutoIncField TFMTBCDField TStringField TBCDField TGraphicField TTimeField TBinaryField TGuidField TVarBytesField TBlobField TIDispatchField TVariantField TBooleanField TIntegerField TWideStringField TBytesField TInterfaceField TWordField TCurrencyField TLargeintField TDataSetField TMemoField

16,747

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
  • 语言基础/算法/系统设计社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧