Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The returned value has no meaning.

...

Example

Example 1

Code Block
//prior setup of the worksheet
reporting_setupSheet("Data", {"Name", "Position", "Age", "Wage"}, {0, 0, 1, 1});
//construction of the data
string[] data = {"John Doe", "Developer", "30", "1300.50", "Paul Smith", "Project Manager", "41", "2500.00"};
string[] badData = {"John Doe", "Developer", "30", "1300.50", "Paul Smith", "Project Manager", "41", "2500.00", "extra value"};
//actual call of the routine
reporting_addData("Data", data);
//call with mismatching data will throw an exception:
reporting_addData("Data", badData);

...