Indy 9
Extract
See Also
Reads and removes the specified number of bytes from the buffer.
Return Value
String - Values removed from Memory allocated to the buffer.
Description
Extract is a String function used to Read and remove the number of bytes specified in AByteCount from the buffer. Extract will raise an EIdNotEnoughDataInBuffer exception if the buffer Size is smaller than the number of bytes indicated in AByteCount.

Extract sets the return value for the method to the contents indicated in Memory starting at the current Position, and including up to AByteCount chatacters. Extract calls Remove to delete AByteCount characters from the buffer on successful completion of the method.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.