RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TReader.ReadBoolean Method

Reads a boolean from the reader object's stream and returns that boolean value.

Pascal
function ReadBoolean: Boolean;
C++
__fastcall Boolean ReadBoolean();

ReadBoolean is a helper method used by other reader methods to read a tagged boolean value at the current reader Position. ReadBoolean uses ReadValue to check the type for a vaTrue value and returns that result. Note that ReadBoolean will not verify that the value being read is a boolean, only whether or not the value is true. 

 

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