/ LJCJSCodeDoc / LJCDBAccessLib / LJCJoins / RetrieveAtIndex


Parameters
index - The index value.

Returns

The item at the supplied index.

Syntax

JavaScript
RetrieveAtIndex(index)

Retrieves the object at the supplied index.

Example

JavaScript
// Retrieves the object at the supplied index.
RetrieveAtIndex()
{
  const joins = new LJCJoins();
  let join = joins.Add("TableOne", "t");
  join = joins.Add("TableTwo", "t2");
  join.SchemaName = "Schema";

  join = joins.RetrieveAtIndex(1);
  const result = join.TableName;

  // result:
  // TableTwo
}

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