Delete a row and compact its table array.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_dt_delete

Purpose

Delete a row and compact its table array.

Arguments

  • $1 — Name of the indexed table array.
  • $2 — Zero-based index to delete.

Side effects

Mutates the table array and compacts the remaining elements.

Returns

  • 0 for an existing numeric index; 1 for invalid or out-of-range indexes.

Usage

  rows=("Ada|admin" "Lin|viewer")
  sgnd_dt_delete rows 0