关于动态数组,初级用户老是迷惑,
传递参数是老是不正确,
主要还有指针的迷惑:
如有记录型:
  TDeviceStatus = record
    Device_ID    : Integer;
    DeviceStatus : array [0..11] of Char;
  end;
// one dimensional dynamic array of device
  TDvcStsGroup  = array of TDeviceStatus;
用时候
var
  DeviceStatus:TDeviceStatus
  DvcStsGroup :TDvcStsGroup;
Begin
  SetLength(DvcStsGroup,5)
  TidTcpClient.WriteBuffer(DvcStsGroup,SizeOf(DeviceStatus)*5);
End;
这么用可是出错,实际上根本发不出,
该如何取得这块内存呢?
也就收和发如何写呢?