TTMSFNCDataGridData.LoadFromJSONData Method
Loads data from a JSON file with encoding; ARowDataName/AColumnDataName map JSON keys to grid rows and columns; AColumnNames maps JSON property names to specific column indices.
API unit family: TMSFNCDataGridData
Declaring type: TTMSFNCDataGridData
Overloads
Overload 1
Loads data from a JSON file with encoding; ARowDataName/AColumnDataName map JSON keys to grid rows and columns; AColumnNames maps JSON property names to specific column indices.
procedure LoadFromJSONData(AFileName: string; AEncoding: TEncoding; ARowDataName: string = ''; AColumnDataName: string = ''; AColumnNames: TTMSFNCDataGridDataJSONNamesArray = nil); overload; virtual;
Parameters
| Name | Description |
|---|---|
AFileName |
Text value used by the operation. |
AEncoding |
Argument used by the operation. |
ARowDataName |
Zero-based row index used by the operation. |
AColumnDataName |
Zero-based column index used by the operation. |
AColumnNames |
Zero-based column index used by the operation. |
Overload 2
Loads data from a JSON file; ARowDataName/AColumnDataName map JSON keys to grid rows and columns; AColumnNames maps JSON property names to specific column indices.
procedure LoadFromJSONData(AFileName: string; ARowDataName: string = ''; AColumnDataName: string = ''; AColumnNames: TTMSFNCDataGridDataJSONNamesArray = nil); overload; virtual;
Parameters
| Name | Description |
|---|---|
AFileName |
Text value used by the operation. |
ARowDataName |
Zero-based row index used by the operation. |
AColumnDataName |
Zero-based column index used by the operation. |
AColumnNames |
Zero-based column index used by the operation. |