Table of Contents

TTMSFNCDataGrid.ValueToInteger Method

Safely converts a raw cell value to an Integer using default formatting.

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

Overloads

Overload 1

Safely converts a raw cell value to an Integer using default formatting.

function ValueToInteger(AValue: TTMSFNCDataGridCellValue): Integer; overload;

Parameters

Name Description
AValue The raw cell value to convert.

Returns

Integer representation of the value.

Overload 2

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

function ValueToInteger(AValue: TTMSFNCDataGridCellValue; AFormatSettings: TFormatSettings): Integer; overload;

Parameters

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

Returns

Integer representation of the value.