Table of Contents

TTMSFNCDataGrid.ValueToBoolean Method

Safely converts a raw cell value to a Boolean using default formatting.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCDataGrid Inherited from: TTMSFNCCustomDataGrid

Overloads

Overload 1

Safely converts a raw cell value to a Boolean using default formatting.

function ValueToBoolean(AValue: TTMSFNCDataGridCellValue): Boolean; overload;

Parameters

Name Description
AValue The raw cell value to convert.

Returns

Boolean representation of the value.

Overload 2

Safely converts a raw cell value to a Boolean using the specified locale format settings.

function ValueToBoolean(AValue: TTMSFNCDataGridCellValue; AFormatSettings: TFormatSettings): Boolean; overload;

Parameters

Name Description
AValue The raw cell value to convert.
AFormatSettings Locale-specific format settings for parsing.

Returns

Boolean representation of the value.