RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TReader.ReadSingle Method

Reads a float value from the reader object's stream and returns its value.

Pascal
function ReadSingle: Single;
C++
__fastcall Single ReadSingle();

ReadSingle is a helper method used by other reader methods to read a tagged Delphi Single data value at the current reader Position. (The Single data type corresponds to float in C++.) ReadSingle first checks the value type (TValueType) by calling the ReadValue method. If the item is a vaSingle, ReadSingle calls Read and returns the value. Otherwise it calls ReadInteger

 

Position 

Read 

ReadInteger 

ReadValue 

TValueType

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!