/ LJCJSCodeDoc / LJCDBAccessLib / LJCDataColumns / Add


Parameters
propertyName - The property name.
columnName - The column name.
renameAs - The rename value.
dataTypeName - The data type name.
value - The column value.

Returns

The added item.

Syntax

JavaScript
Add(propertyName, columnName, renameAs, dataTypeName, value)

Creates and adds the item to the list.

Example

JavaScript
// Creates and adds the item to the list.
Add()
{
  const columns = new LJCDataColumns();
  let column = columns.Add("Name");
  column = columns.Add("Sequence");
  column.Value = 1;

  column = columns.Retrieve("Sequence");
  let result = column.Value;

  // result:
  // 1
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.