各位老大:请帮助!!!!! 如何得到monthcalendar控件的date属性???我现在想在点击monthcalendar的时候将其date写入edit中,如何解决,请帮忙!一定加分 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure TForm1.MonthCalendar1Click(Sender: TObject);begin Edit1.Text:=DateToStr(MonthCalendar1.Date);end; procedure TForm1.MonthCalendar1Click(Sender: TObject);begin edit1.text:= datetostr(MonthCalendar1.Date);end;不知道是不是符合你的要求。 可是,在写的时候MonthCalendar1根本就不允许调用date属性的啊!!!! 读:edit1.text:= datetostr(MonthCalendar1.Date);写:MonthCalendar1.Date := strtoDate(edit1.Text); edit 控件光标停留问题? DBGridEh 如何获取列信息 个人如何通过法律的手段保护自己的软件? delphi里的什么属性与VB里的scalewidth,scaleheight相当? 使DBCtrlGrid(非DBGrid)支持鼠标滚轮! 怎么在DELPHI中调用EXECL程序打开EXECL文件 函数调用 多個用戶訪問同一數據庫! 查詢問題? dbgrid显示查询结果的问题 求救啊,关于获取硬盘系列号。我的程序如下XP可以,98下不行,为什么, delphi5里面的TDBCTRLGIRD在DELPHI6的什么地方?
begin
Edit1.Text:=DateToStr(MonthCalendar1.Date);
end;
begin
edit1.text:= datetostr(MonthCalendar1.Date);
end;
不知道是不是符合你的要求。
edit1.text:= datetostr(MonthCalendar1.Date);
写:
MonthCalendar1.Date := strtoDate(edit1.Text);