note 621 added to gtk.gtkclist.method.remove.php

[email protected]
Newsgroups php.gtk.webmaster
Message-ID <[email protected]>
If you remove the item with the id "0", the next in the list (the one with the id "1") will become "0".

You cannot make a foreach()-run on the clist selected and remove them this way.

The way to solve this problem is using array_reverse() (so you will run through the list backwards, taking the largest numbers first):

<?
   foreach(array_reverse($myclist -> selection) AS $value){
      $myclist -> remove($value);
   }
?>

 http://gtk.php.net:80/manual/en/gtk.gtkclist.method.remove.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.