SetLength(OldDeptInfo,0);     //释放旧数组   OldDeptInfo:=nil; 这样也可以;
  //SetLength(OldDeptInfo,Length(NewDeptInfo));    //不需要设定长度;
  OldDeptInfo:= NewDeptInfo;    //动态数组的引用:
  NewDeptInfo:=nil;             //释放其中一个数组引用,数组还是存在的;

  

相关文章:

  • 2022-02-09
  • 2022-12-23
  • 2021-12-05
  • 2021-11-02
  • 2021-07-03
猜你喜欢
  • 2022-12-23
  • 2022-01-26
  • 2021-10-22
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
相关资源
相似解决方案