当前位置:编程学习 > Delphi >>

求懂Delphi的翻译下此段描述

Call CreateDataSet at runtime to create a new, empty client dataset that can then be edited and saved. 

If the FieldDefs property contains values, these values are used to create field definitions. Otherwise the Fields property is used. One or both of these properties must contain values in order to create a dataset. If neither property is set, CreateDataSet raises an exception. 

If the IndexDefs property contains values, these values are used to create indexes for the dataset. Indexes created from the IndexDefs property are saved with the client dataset when it is saved to a file.
Note: You can create a dataset at design time as well: Create persistent field components or field definitions. Then right-click the client dataset and select Create Data Set.

答案:

呼叫createdataset在运行时创建一个新的,空的客户数据,就可以编辑和保存。

如果fielddefs属性包含值,这些值是用来创建字段定义。否则域属性用于。一个或多个这些属性必须包含值来创建数据集。如果属性设置,createdataset引发一个异常。

如果indexdefs属性包含值,这些值是用于创建索引的数据集。创建索引的indexdefs财产保存客户端数据时,它被保存到一个文件。

注意:您可以创建一个数据集在设计时以及:创造持久的外地部分或字段定义。然后右击并选择创建客户端数据集数据集。

在运行时调用CreateDataSet创建一个新的、空白的可以编辑和保存的客户端dataset(数据集)。

如果FieldDefs属性包含有值,这些值用来定义创建的字段,或者是使用Fields属性,为了创建一个dataset两者之间必须有一个或两者都含有属性,如果两者都没有设置属性,CreateDataset则引发一个异常。

如果indexDefs属性包含值,这些值用于dataset的索引创建,当客户端dataset保存到一个文件,以indexDefs属性创建的索引随同保存。

注意:你可以创建一个友好的静态dataset:创建持久的组件或字段定义,右键client dataset并选择Create Data Set。

上一个:万望delphi高手指点一下窗体调用中的问题!
下一个:Delphi程序开发有哪些优点???

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,