请问各位大侠,move在Delphi中是如何使用的,还有它的作用是什么。下面例子如何解释。var
  lInGateOptNo : array [0..2] of char;
  InGateOptNo : DWORD;
begin
  InGateOptNo := 99999;
  Move(InGateOptNo, lInGateOptNo, 3);
end;

解决方案 »

  1.   

    move就是内存块拷贝
    InGateOptNo:dword=longword,占用4个字节。
    将 99999的前三个字节放入 linGateOptNo数组
      

  2.   

    LZ从来不看delphi的帮助么?里面写的很清楚啊
    Move 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 the global SizeOf function (Delphi) or the sizeof operator (C++) to determine the count.    A: array[1..4] of Char;
      B: Integer;  Move(A, B, SizeOf(B));
      

  3.   

     如楼上几位所言,可以与CopyMemory互换