/ LJCJSCodeDoc / LJCDBAccessLib / LJCDataColumns / SelectItems


Parameters
propertyNames - The property names.

Returns

The collection

Syntax

JavaScript
SelectItems(propertyNames)

Gets the items that match the supplied names.

Example

JavaScript
// Gets the items that match the supplied names.
SelectItems()
{
  const columns = new LJCDataColumns();
  let column = columns.Add("Name");
  column = columns.Add("Sequence");

  const propertyNames = [
    "Sequence",
  ]
  const selected = columns.SelectItems(propertyNames);
  let result = selected.Count;
  let compare = 1;
  LJC.CheckValues("SelectItems()", result, compare);

  column = selected.RetrieveAtIndex(0);
  result = column.PropertyName;

  // result:
  // Sequence
}

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