Re: GtkClist / find_row_from_data

From: Date: Sun, 14 Apr 2002 14:41:35 +0000
Subject: Re: GtkClist / find_row_from_data
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1784@lists.php.net to get a copy of this message
It does work, its just tempremental :) - it works on memory matching, not string matching - eg. (this is not exactly correct but you should get the idea) $fixed_string = "some value"; $list->set_row_data($row,$fixed_string); $find = $list->get_row_data($fixed_string); // will work $find = $list->get_row_data("some value"); // will fail Its used somewhere in phpmole - in directory list i think - have a look at the code (grep get_row_data * -r) regards alan Markus Fischer wrote:
Don't waste your time on this method, it is not really implemented. On Sun, Apr 14, 2002 at 02:46:33AM +0200, Hakan Kuecuekyilmaz wrote :
Hi, I am currently experimenting with Clist. While I am filling a Clist I want to look for duplicate entries like: while getting data .... $row = array("$filesize", "$file", "$user", "$hash", "$size", "$href"); $list->freeze(); $list->append($row); $list->thaw(); $find = $list->find_row_from_data("$hash"); echo "$find\n"; ..... The Clist gets filled, but in $find I find always -1 (nothing found). What I am doing wrong? regards -- Hakan Kuecuekyilmaz, University of Applied Sciences Esslingen, Germany <hakan@php.net> | <hakan@lisas.de> | <hakan.kuecuekyilmaz@c-cn.de>
Studenten, Absolventen und Young Professionals    <http://www.c-cn.de>
-- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.gtk.general (#1784) next »