Datasnap.DBClient.TClientBlobStream.Truncate

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Unit: Datasnap.DBClient
Parent: TClientBlobStream

Delphi

procedure Truncate;

C++

void __fastcall Truncate();

Description

Discards all data in the BLOB field from the current position on.

Use Truncate to limit the size of the BLOB data. Calling Truncate does the same thing as setting the Size property to the value of the Position property. Calling Truncate when the current position is 0 clears the contents of the BLOB field.

Note: Do not call Truncate when the TBlobStream was created in bmRead mode.

See Also