请问delphi有没有类似arraycopy这样简单复制数组的函数呢?另外比较两个数组是否一样,有没有什么简单的办法?数组不是简单类型数据

解决方案 »

  1.   

    从DELPHI帮助中复制下来的:
    Copies bytes from a source to a destination.UnitSystemCategorymiscellaneous routinesprocedure Move(const Source; var Dest; Count: Integer);//就是它DescriptionMove copies Count bytes from Source to Dest. No range checking is performed. Move compensates for overlaps between the source and destination blocks. Whenever possible, use SizeOf to determine the count.
      

  2.   

    copy(arrayname,start,length) :result array
      

  3.   

    要S1:=copy(s,start,length) ,将S中的从START开始拷贝LENGTH长的字符串,得到的结果给S1,