递归的使用


var
iFindRec, iParentRec: IGSPRecord; begin Result := -1; iFindRec := FSection.FindByID(ASectionID); if not Assigned(iFindRec) then Exit; iParentRec := iFindRec.FindField(pfnPID).MasterRecord; while iParentRec <> nil do begin iFindRec := iParentRec; iParentRec := iFindRec.FindField(pfnPID).MasterRecord; end; Result := iFindRec.ID; end;

 

转载于:https://www.cnblogs.com/echomyecho/archive/2012/05/21/2512014.html

相关文章:

  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2021-10-02
相关资源
相似解决方案