超简单问题:如何手动为数据库添加记录?(50分)

  • 主题发起人 主题发起人 richzhe
  • 开始时间 开始时间
R

richzhe

Unregistered / Unconfirmed
GUEST, unregistred user!
DBexpress开发,手动添加记录<br>ds_Data.DataSet.Insert;<br>&nbsp; with ds_Data.DataSet do<br>&nbsp; begin<br>&nbsp; &nbsp; FieldValues['ID'] :=Trim(TRzedt_InID.Text);<br>&nbsp; &nbsp; FieldValues['DYDate'] :=TRzdtedt_DYDate.Text;<br>&nbsp; &nbsp; FieldValues['Standard'] :=TRzlist_DYStandard.SelectedItem;<br>&nbsp; &nbsp; FieldValues['Breed'] :=TRzlist_DYBreed.SelectedItem;<br>&nbsp; &nbsp; FieldValues['Customer'] :=TRzcombo_DYCustomer.Text;<br>&nbsp; &nbsp; FieldValues['Employee'] :=TRzedt_DYEmployee.Text;<br>&nbsp; &nbsp; FieldValues['Factory'] :=TRzcombo_DYFactory.Text;<br>&nbsp; &nbsp; FieldValues['Detail'] :=Trim(TRzmmo_DYDetail.Text);<br>&nbsp; end;<br>&nbsp; ds_Data.DataSet.Post;<br><br>提示:字段值没有赋值,不知何故?
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
939
SUNSTONE的Delphi笔记
S
后退
顶部