Data.Cloud.CloudAPI.TCloudTableRow.SetColumn
Delphi
procedure SetColumn(const Name, Value: string; const DataType: string = ''; const Replace: Boolean = true);
C++
void __fastcall SetColumn(const System::UnicodeString Name, const System::UnicodeString Value, const System::UnicodeString DataType = System::UnicodeString(), const bool Replace = true);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.Cloud.CloudAPI.pas Data.Cloud.CloudAPI.hpp |
Data.Cloud.CloudAPI | TCloudTableRow |
Description
Adds the new column.
SetColumn replaces the value and data type of an existing column with the given name, if one is found. If Replace
is set to False and a column with the given name already exists, but the value is not the one mentioned, then a new column is created for the specified value. There will be two columns with the same name, but with different values.
The following table shows the significance of the parameters:
Parameter | Description |
---|---|
|
Name of the column to add. |
|
Value to store in this row's cell for the column. |
|
The name of the cell's data type. It is optional and defaults to an empty string. |
|
|