T
terry_zhou82
Unregistered / Unconfirmed
GUEST, unregistred user!
每次导入数据,在时间方面,一定要先点击记录向前或者记录向后按钮,MASKEDIT上面才会正常显示,请问这个是什么原因啊?[code delphi]procedure TForm4.LoadData;begin LabeledEdit2.Text := form1.abstable1.fieldByName('提醒人').AsString; MaskEdit1.Text := formatdatetime('HH:mm',Form1.ABSTable1.fieldbyname('提醒时间').asdatetime); memo1.text:=form1.abstable1.fieldByName('提醒内容').AsString; LabeledEdit1.Text := form1.abstable1.fieldByName('声音文件').AsString; if form1.abstable1.FieldByName('键盘提示').AsBoolean then ComboBox2.ItemIndex := 0 else ComboBox2.ItemIndex := 1; if Form1.ABSTable1.fieldbyname('提醒日期').asdatetime=0 then dateTimePicker1.Format :=' ' else datetimepicker1.date:=StrToDate(formatdatetime('yyyy-mm-dd',Form1.ABSTable1.fieldbyname('提醒日期').asdatetime))end;procedure TForm4.ToolButton1Click(Sender: TObject);beginForm1.ABSTable1.First ;LoadData;end;[/code]