/ LJCJSCodeDoc / LJCDBAccessLib / LJCJoins / 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 joins = new LJCJoins();
  let join = joins.Add("TableOne", "t");
  join = joins.Add("TableTwo", "t2");
  join.SchemaName = "Schema";

  const result = joins.GetIndex("TableTwo", "t2");

  // result:
  // 1
}

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