Here's the function I use:
DEF INSERT ARRAY[],POS%,VALUE UNSHIFT ARRAY,VALUE 'This is just to make the array longer. I use VALUE since it will be the same variable type as the array. COPY ARRAY,ARRAY,1,POS% 'Moves all the elements before POS% 1 space to the left. ARRAY[POS%]=VALUE 'Add the new value. END