Skip to main content
Table of Contents

TTMSFNCDataGridData.ValueToBoolean Method

Converts a cell value to a Boolean using the default format settings.

API unit family: TMSFNCDataGridData Declaring type: TTMSFNCDataGridData

Overloads

Overload 1

Converts a cell value to a Boolean using the default format settings.

FMX.TMSFNCDataGridData.hppPascalC++
class function ValueToBoolean(AValue: TTMSFNCDataGridCellValue): Boolean; overload;
__classmethod bool __fastcall ValueToBoolean(const TTMSFNCDataGridCellValue &AValue)/* overload */;

Parameters

Name Description
AValue Cell value to convert.

Returns

True when the value converts to a non-zero integer (numbers are rounded, 'True' counts as 1); False otherwise, including for empty or unparsable values.

Overload 2

Converts a cell value to a Boolean using the supplied format settings to parse text.

FMX.TMSFNCDataGridData.hppPascalC++
class function ValueToBoolean(AValue: TTMSFNCDataGridCellValue; AFormatSettings: TFormatSettings): Boolean; overload;
__classmethod bool __fastcall ValueToBoolean(const TTMSFNCDataGridCellValue &AValue, const System::Sysutils::TFormatSettings &AFormatSettings)/* overload */;

Parameters

Name Description
AValue Cell value to convert.
AFormatSettings Locale settings used to parse numeric text.

Returns

True when the value converts to a non-zero integer; False otherwise, including for empty or unparsable values.