Turning wrapping of array field subscripts on or off (sys.IndexWrap )ΒΆ

sys.IndexWrap,,i1

Determines if subscripted fields wrap

Determines whether the subscripts of an array field are to be wrapped. May be set to ON or OFF.

If sys.IndexWrap is OFF, then a subscript which is out of the range for the field referred to causes a null value to be referenced. For a field st.level subscripted ten times [10] the value of st.level[12] would always be null.

If sys.IndexWrap is ON, then subscripts are wrapped modulus their dimension. In this case, st.level[12] would access the same element as st.level[2].

The default for sys.IndexWrap is OFF.


NOTES

  • Subscripts used for textbox input are always wrapped, regardless of the value of sys.IndexWrap.


RELATED TOPICS

Data fields

Field dimensions

Textboxes