Blob.SetLength

Parent Previous Next

Blob.SetLength.

Sets the new length of the blob - either shortening the current blob - or expanding it with bytes containing 0x00.


Syntax.


 SetLength(Integer length)

 


Arguments:


Example:


 Blob b := 0x00010203040506;

 b.SetLength(4); //Now b == 0x00010203;

 b.SetLength(6); //Now b == 0x000102030000;