/ LJCJSCodeDoc / LJCDBAccessLib / LJCJoinOns / Clear


Syntax

JavaScript
Clear()

Clears the collection list.

Example

JavaScript
// Clears the collection list.
Clear()
{
  const joinOns = new LJCJoinOns();
  let joinOn = joinOns.Add("fromColumnName1", "toColumnName1");
  joinOn = joinOns.Add("fromColumnName2", "toColumnName2");

  joinOns.Clear();
  const result = joinOns.Count;

  // result:
  // 0
}

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