/ LJCJSCodeDoc / LJCDBAccessLib / LJCJoins / Clear


Syntax

JavaScript
Clear()

Clears the collection list.

Example

JavaScript
// Clears the collection list.
Clear()
{
  const joins = new LJCJoins();
  let join = joins.Add("TableOne", "t");
  join = joins.Add("TableTwo", "t2");
  join.SchemaName = "Schema";

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

  // result:
  // 0
}

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