Skip to content

Noodle Nline() Method

Dan Kranz edited this page Oct 7, 2021 · 4 revisions

Returns the number of lines (rows) in the dataset.

Custom data sources may define a length function to support this method.

Syntax

Nline()

Parameter Values

None

Example

var items = [
  ["1","Vegetable","Tree","1"],
  ["2","Animal","Bird","1"],
  ["3","Mineral","Diamond","1"],
  ["4","Vegetable","Flower","1"],
  ["5","Vegetable","Grass","1"],
  ["6","Animal","Cat","1"],
  ["7","Animal","Dog","1"],
  ["8","Mineral","Ruby","1"],
  ["9","Mineral","Quartz","1"]
];
var db1 = new Noodle(items, ["Seq","Category","Item","Count"]);

var nline = db1.Nline();  // nline=9
Clone this wiki locally