Data.Cloud.CloudAPI.TCloudTableRow.SetColumn

From RAD Studio API Documentation
Jump to: navigation, search

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

Name of the column to add.

Value

Value to store in this row's cell for the column.

DataType

The name of the cell's data type. It is optional and defaults to an empty string.

Replace

true to replace a previous value, if it exists, false to create a second column.

See Also