【发布时间】:2021-09-08 11:33:47
【问题描述】:
我是 Delphi 的新手,我正在尝试从我在 Planner 中选择的项目中获取名称。使用PlannerMonthView1.CreateItem 后设置项目的文本,如下所示:
DbDate := FrmMain.FDTable1.FindField('NOT_DATE').AsFloat;
FrmMain.FDTable1.First;
for i := 0 to FrmMain.ListBox1.Count-1 do
begin
With PlannerMonthView1.CreateItem do
begin
DbDate := FrmMain.FDTable1.FindField('NOT_DATE').AsFloat;
ItemStartTime := DbDate;
ItemEndTime := DbDate;
Text.Text := FrmMain.FDTable1.FindField('NOT_NAME').AsString;
FrmMain.FDTable1.Next;
end;
我的问题是 TMS 中没有针对 Planner 工具的组件列表。我试过这样:
ShowMessage(FKalender.PlannerMonthView1.CreateItem.Text.GetText[2]);
...但显示的是一个空的消息框。
【问题讨论】:
-
属性选择:TPlannerItem;返回当前选定的项目。手册中的所有内容:tmssoftware.biz/Download/Manuals/TMS%20TPLANNER.pdf 查找“计划器中的项目选择”
-
嗨,那是您的帮助。但现在我有另一个问题。我已经尝试过:
Text := PlannerMonthView1.Items.Select;但这并不是因为“没有足够的真实参数”