System.Classes.TReader.ReadCurrency
Delphi
function ReadCurrency: Currency;
C++
System::Currency __fastcall ReadCurrency();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TReader |
Description
Reads and returns a Currency type value from the reader object's stream.
ReadCurrency is a helper method used by other reader methods to read a tagged Currency value at the current reader Position. ReadCurrency calls ReadValue to check whether the value-type indicator is vaCurrency
, and then ReadCurrency calls Read and returns the retrieved Currency type value. Otherwise ReadCurrency returns the stream position back before the value-type indicator, calls ReadInt64, and returns the retrieved value.
ReadCurrency advances the reader Position after the last byte it has read.