Versions Compared

Key

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

...

arraySetElement(array, index1, elem)

Description

Excerpt

If elem is an element of the array type, returns a new array with the specified element on position index1 . If index1 is greater than the array size, it will add empty elements on the missing positions.

...

Code Block
watchers = setElement(watchers, 12, currentUser());

Sets the value currentUser for the 13 th element of the array watchers

Notes

Note
  1. If array is not defined as an array, the routine returns error.
  2. If index is not number the routine returns error.

...