Difference between revisions of "Array SetValRange"
Jump to navigation
Jump to search
(Created page with "Assigns a specified value to each element within a specified range, of the specified one-dimensional array. ==== Usage ==== <syntaxhighlight>Array_SetValRange(ArrayName,Sta...") |
|||
Line 1: | Line 1: | ||
Assigns a specified value to each element within a specified range, of the specified one-dimensional array. | Assigns a specified value to each element within a specified range, of the specified one-dimensional array. | ||
− | + | == Usage == | |
<syntaxhighlight>Array_SetValRange(ArrayName,StartIndex,EndIndex,Value)</syntaxhighlight> | <syntaxhighlight>Array_SetValRange(ArrayName,StartIndex,EndIndex,Value)</syntaxhighlight> | ||
− | Where: | + | Where: |
+ | :'''ArrayName''' - an expression specifying the name of an array | ||
− | + | :'''StartIndex''' - a numerical expression specifying the starting index for the range | |
− | + | :'''EndIndex''' - a numerical expression specifying the ending index for the range | |
− | + | :'''Value''' - a value to be assigned to each element within the range | |
− | + | == Example == | |
Assign a value of True to each element within a segment, beginning at index 4 and ending at index 6, of Array1: | Assign a value of True to each element within a segment, beginning at index 4 and ending at index 6, of Array1: | ||
Latest revision as of 21:30, 27 February 2017
Assigns a specified value to each element within a specified range, of the specified one-dimensional array.
Usage
Array_SetValRange(ArrayName,StartIndex,EndIndex,Value)
Where:
- ArrayName - an expression specifying the name of an array
- StartIndex - a numerical expression specifying the starting index for the range
- EndIndex - a numerical expression specifying the ending index for the range
- Value - a value to be assigned to each element within the range
Example
Assign a value of True to each element within a segment, beginning at index 4 and ending at index 6, of Array1:
Array_SetValRange(Array1,4,6,True);