AOrgURLs是TStrings; AOrgURLs.Count 是有值的
lOrgURL是TOrgURL;
for J := 0 to AOrgURLs.Count - 1 do
begin
lOrgURL := AOrgURLs.Objects[J] as TOrgURL;
...................
...................
...................
问题是AOrgURLs.Objects[J] 总是空,执行下面的语句就报错,看看有什么问题?
case lOrgURL.Kind of
TBizObjectKind.boOrgan, TBizObjectKind.boDept:
Org.OrgSys.OrgSystem.GetBizURLsByOrgExpr(SysUtils.Format(ORGEXPR, [lOrgURL.DeptID, '', '']),
lBizURLs);
TBizObjectKind.boPositionMember:
Org.OrgSys.OrgSystem.GetBizURLsByOrgExpr(SysUtils.Format(ORGEXPR, [lOrgURL.DeptID, lOrgURL.PositionID, '']),
lBizURLs);
TBizObjectKind.boPersonMember:
lBizURLs.Add(lOrgURL.BizURL.URL);
end; |