TTMSFNCDataGridData.ValueToInteger Method
Converts a cell value to an integer using the default format settings. Never raises an exception.
API unit family: TMSFNCDataGridData
Declaring type: TTMSFNCDataGridData
Overloads
Overload 1
Converts a cell value to an integer using the default format settings. Never raises an exception.
class function ValueToInteger(AValue: TTMSFNCDataGridCellValue): Integer; overload;
__classmethod int __fastcall ValueToInteger(const TTMSFNCDataGridCellValue &AValue)/* overload */;
Parameters
| Name | Description |
|---|---|
AValue |
Cell value to convert. |
Returns
The integer; floating-point values are rounded, and empty, unparsable or out-of-range values give 0.
Overload 2
Converts a cell value to an integer, parsing text with the supplied format settings. Never raises an exception.
class function ValueToInteger(AValue: TTMSFNCDataGridCellValue; AFormatSettings: TFormatSettings): Integer; overload;
__classmethod int __fastcall ValueToInteger(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
The integer; floating-point values are rounded, and empty, unparsable or out-of-range values give 0.