<html><head></head><body><div dir="auto">I guess SWAP or EXCHANGE would better represent the intention of exchanging two items or blocks of items.<br><br></div>
<div dir="auto">zxMarce.<br></div>
<div class="gmail_quote" >On Jun 6, 2018, at 05:09, Rolf-Werner Eilert <<a href="mailto:rwe-sse@osnanet.de" target="_blank">rwe-sse@osnanet.de</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue">Ever so often I have to pick an entry from an array or a table and set <br>it to another position. Mostly this happens when the GUI offers an <br>upward and downward button.<br><br>Each time I have to find a practical solution for my code, invent the <br>wheel if you want so, to<br><br>- store the contents of the array<br>- put it to its new position<br>- delete it at its old position<br><br>So a ready-made function for this would be nice, and alongside we could <br>even have a broader concept by allowing for whole blocks to be pushed.<br><br>Don't know which word is best for this in English, maybe push or skip or <br>slide... If it was push, it might be used like<br><br>myArray.Push(FromPosition, ToPosition, Length)<br><br>What do you think?<br><br>Regards<br>Rolf<br><br>----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net">https://www.hostsharing.net</a> ]----<br></pre></blockquote></div></body></html>