/ LJCJSCodeDoc / LJCDBAccessLib / LJCJoinOns / Remove


Parameters
fromColumnName - The "from" column name.

Syntax

JavaScript
Remove(fromColumnName)

Removes the the object which matches the data values.

Example

JavaScript
// Removes the object which matches the data values.
Remove()
{
  const joinOns = new LJCJoinOns();
  let joinOn = joinOns.Add("fromColumnName1", "toColumnName1");
  joinOn = joinOns.Add("fromColumnName2", "toColumnName2");

  joinOns.Remove("fromColumnName1");
  joinOn = joinOns.Retrieve("fromColumnName1");
  let result = "Found";
  if (null == joinOn)
  {
    result = "";
  }

  // result:
  // 
}

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