Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 TMS TDBPlanner OnDragDropItem 事件中,PlannerItem 引用您拖放到的项目。从这里我如何获取数据库行的主键,以便我可以更新数据库中的相关行?
I found it. The TPlannerItem as a DBKey property. So I get it like this;
procedure TForm1.DBPlanner1DragDropItem(Sender, Source: TObject; X, Y: Integer; PlannerItem: TPlannerItem); var pk: integer; begin inherited; pk := StrToInt(PlannerItem.DBKey); end;