TTMSFNCDataGrid.ValueToInt64 Method
Converts a cell value to an Int64 without raising an exception.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCDataGrid
Inherited from: TTMSFNCCustomDataGrid
Overloads
Overload 1
Converts a cell value to an Int64 without raising an exception.
function ValueToInt64(AValue: TTMSFNCDataGridCellValue): Int64; overload;
__int64 __fastcall ValueToInt64(const TTMSFNCDataGridCellValue &AValue)/* overload */;
Parameters
| Name | Description |
|---|---|
AValue |
The cell value to convert. |
Returns
The integer value; floating-point values are rounded, Booleans convert to 0 or 1, strings are parsed; 0 for empty or unparsable values.
Overload 2
Converts a cell value to an Int64 using the specified format settings, without raising an exception.
function ValueToInt64(AValue: TTMSFNCDataGridCellValue; AFormatSettings: TFormatSettings): Int64; overload;
__int64 __fastcall ValueToInt64(const TTMSFNCDataGridCellValue &AValue, const System::Sysutils::TFormatSettings &AFormatSettings)/* overload */;
Parameters
| Name | Description |
|---|---|
AValue |
The cell value to convert. |
AFormatSettings |
Format settings used to parse floating-point strings. |
Returns
The integer value (floating-point values rounded), or 0 for empty or unparsable values.