Hello-
I'm looking for a keyword/function like fill_array(array1,0), to force an array [1 dimension] to push values forward, i.e. array1[1] = array1[0], array1[2] = array1[1]........etc. Is there a keyword or pre-built function that does this?
I'm currently pushing values forward by using a counter, and want to make the process more efficient.
TY,
mb2k
Push values in Array
- Kate MultiCharts
- Posts: 575
- Joined: 21 Oct 2020
- Has thanked: 7 times
- Been thanked: 144 times
Re: Push values in Array
Hello mb2k,
Here's a sample:
Here's a sample:
Code: Select all
input:
Arr[Length](NumericArrayRef);
var: Counter(0);
for Counter=Length DownTo 1
Begin
Arr[Counter] = Arr[Counter-1];
End;
Array_Shift = 1;