<div dir="ltr">But swap function already exist.<br>I believe that based on this example [0], we can make our own generic function.<br><br>Regards<br>Gianluigi<br><br>[0] <a href="http://gambaswiki.org/wiki/comp/gb.qt4/gridview/sorted">http://gambaswiki.org/wiki/comp/gb.qt4/gridview/sorted</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-06 11:16 GMT+02:00 <span dir="ltr"><<a href="mailto:d4t4full@gmail.com" target="_blank">d4t4full@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><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="m_7566175646892724687blue">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" target="_blank">https://www.hostsharing.net</a> ]----<br></pre></blockquote></div></div><br><br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
<br></blockquote></div><br></div>