RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIBBlobStream.Seek Method

Resets the current position of the TIBBlobStream object.

Pascal
function Seek(Offset: Longint; Origin: Word): Longint; override;
C++
virtual __fastcall Longint Seek(Longint Offset, Word Origin);

Use Seek to move the current position within the Blob data by the indicated offset. Seek allows an application to read from or write to a particular location within the Blob data. 

The Origin parameter indicates how to interpret the Offset parameter. Origin should be one of the following values:

Value  
Meaning  
Offset is from the beginning of the Blob data
Seek moves to the position Offset
Offset must be >= 0  
Offset is from the current position in the Blob data
Seek moves to Position + Offset  
Offset is from the end of the Blob data
Offset must be <= 0 to indicate a number of bytes before the end of the Blob  

Seek returns the new value of the Position property, the new current position in the Blob data. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!