/ LJCJSCodeDoc / LJCDBAccessLib / LJCJoinOns / GetIndex


Parameters
fromColumnName - The "from" column name.

Returns

The matching object index.

Syntax

JavaScript
GetIndex(fromColumnName)

Gets the index of the object which matches the data values.

Example

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

  const result = joinOns.GetIndex("fromColumnName2");

  // result:
  // 1
}

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