1.再装一次看看! 2.DBEdit: Use TDBEdit to enable users to edit a database field. TDBEdit uses the Text property to represent the contents of the field.TDBEdit permits only a single line of text. If the field may contain lengthy data that would require multiple lines, consider using a TDBMemo object.If the application does not require the data-aware capabilities of TDBEdit, use an edit control (TEdit) or a masked edit control (TMaskEdit) instead, to conserve system resources.To provide a mask that restricts input and controls the display format of the data, use mask-related properties of TField and descendants. Such properties include: TField.EditMask, TDateTimeField.DisplayFormat, and TNumericField.DisplayFormat. Which property needs to be used depends on the field抯 type and the TField descendant that corresponds to that type. Edit:Use a TEdit object to put a standard edit control on a form. Edit controls are used to retrieve text that users type. Edit controls can also display text to the user. When only displaying text to the user, choose an edit control to allow users to select text and copy it to the Clipboard. Choose a label object if the selection capabilities of an edit control are not needed.TEdit implements the generic behavior introduced in TCustomEdit. TEdit publishes many of the properties inherited from TCustomEdit, but does not introduce any new behavior. For specialized edit controls, use other descendant classes of TCustomEdit or derive from it.
2.DBEdit: Use TDBEdit to enable users to edit a database field. TDBEdit uses the Text property to represent the contents of the field.TDBEdit permits only a single line of text. If the field may contain lengthy data that would require multiple lines, consider using a TDBMemo object.If the application does not require the data-aware capabilities of TDBEdit, use an edit control (TEdit) or a masked edit control (TMaskEdit) instead, to conserve system resources.To provide a mask that restricts input and controls the display format of the data, use mask-related properties of TField and descendants. Such properties include: TField.EditMask, TDateTimeField.DisplayFormat, and TNumericField.DisplayFormat. Which property needs to be used depends on the field抯 type and the TField descendant that corresponds to that type.
Edit:Use a TEdit object to put a standard edit control on a form. Edit controls are used to retrieve text that users type. Edit controls can also display text to the user. When only displaying text to the user, choose an edit control to allow users to select text and copy it to the Clipboard. Choose a label object if the selection capabilities of an edit control are not needed.TEdit implements the generic behavior introduced in TCustomEdit. TEdit publishes many of the properties inherited from TCustomEdit, but does not introduce any new behavior. For specialized edit controls, use other descendant classes of TCustomEdit or derive from it.
2.TDBEdit可对应数据库中的字段,它有TEdit没有的属性DataSource 和 DataField
来对应数据库和字段
安装如下:
component--->install packages 从弹出的对话框中选择"add"按钮,并从delphi7的安装目录下的“bin”目录下选择“dclqrt70.bpl”文件,单击打开按钮,然后再点ok按钮就可以了!!TDBEdit是TEDIT的数据敏感组件,他能提供到数据库的关联。