TTMSFNCDataGridData.ValueToInt64 Method
Converts a cell value to a 64-bit 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 a 64-bit integer using the default format settings. Never raises an exception.
class function ValueToInt64(AValue: TTMSFNCDataGridCellValue): Int64; overload;
__classmethod __int64 __fastcall ValueToInt64(const TTMSFNCDataGridCellValue &AValue)/* overload */;
Parameters
| Name | Description |
|---|---|
AValue |
Cell value to convert. |
Returns
The integer; floating-point values are rounded, and empty or unparsable values give 0.
Overload 2
Converts a cell value to a 64-bit integer, parsing text with the supplied format settings. Never raises an exception.
class function ValueToInt64(AValue: TTMSFNCDataGridCellValue; AFormatSettings: TFormatSettings): Int64; overload;
__classmethod __int64 __fastcall ValueToInt64(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 or unparsable values give 0.