Parameters
dataColumn - The column object.
Returns
The added item.
Syntax
| JavaScript |
|
AddObject(dataColumn)
|
Adds the supplied item to the list.
Example
| JavaScript |
// Adds the supplied column to the list.
AddObject()
{
const columns = new LJCDataColumns();
let column = new LJCDataColumn("Name");
columns.AddObject(column);
column = new LJCDataColumn("Sequence");
column.Value = 1;
columns.AddObject(column);
column = columns.Retrieve("Sequence");
let result = column.Value;
// result:
// 1
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.