起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 686|回复: 0

如何向环境中发送任务消息

[复制链接]
发表于 2007-8-16 15:58:09 | 显示全部楼层 |阅读模式
function TMAINFORM.GetCurrentTaskGuid : string;
var
  lMsg : TGetCurrentTaskMessage;
begin
  Result := '';
  lMsg := TGetCurrentTaskMessage.Create;
//  Context.SendMessage(lMsg);
  Context.BroadcastToParent(lMsg);
  if Length(lMsg.Tasks) > 0 then
    Result := lMsg.Tasks[0].GUID;
end;
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2024-4-18 17:53 , Processed in 0.042794 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表