[fpc-pascal] How to Copy a Record data to a buffer?

yu ping spingyu at gmail.com
Sat Oct 10 12:52:38 CEST 2009


Solved,Thanks
there is another mistake:				
    FillChar(sendData, high(sendData), 0);
change to 				
    FillChar(sendData[0], high(sendData), 0);
OK.



2009/10/10 Matthias K. <makadev at googlemail.com>:
> Hi,
> For the Move solution, use "Move( SendBuffer, rcvData[0], count )"..
> Same common mistake with <dynamic array var>[0].
>
> sry
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



More information about the fpc-pascal mailing list