/ LJCJSCodeDoc / LJCDBAccessLib / LJCDataColumns / PropertyNames


Returns

The property name array.

Syntax

JavaScript
PropertyNames(propertyName, value)

Gets an array of property names.

Example

JavaScript
// Gets an array of property names.
PropertyNames()
{
  const columns = new LJCDataColumns();
  let column = columns.Add("Name");
  column = columns.Add("Sequence");

  const names = columns.PropertyNames();
  let result = "";
  for (let index = 0; index < names.length; index++)
  {
    let column = columns.RetrieveAtIndex(index);
    if (LJC.HasText(result))
    {
      result += ", ";
    }
    result += column.PropertyName;
  }

  // result:
  // Name, Sequence
}

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