RES: [PHP-GTK] PHP4 Object Issues.

From: Date: Tue, 02 Aug 2005 20:26:05 +0000
Subject: RES: [PHP-GTK] PHP4 Object Issues.
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6120@lists.php.net to get a copy of this message
The same problem ocurrs, the reference outside is ok, but inside add_toolbox is null. Piero -----Mensagem original----- De: Scott Mattocks [mailto:scott@crisscott.com] Enviada em: terça-feira, 2 de agosto de 2005 16:28 Para: php-gtk-general@lists.php.net Assunto: Re: [PHP-GTK] PHP4 Object Issues. Hello Piero, I think the problem you are having is related to references. Any time you assign a widget to some other variable, you need to use '&'. Change your code to this and see if it works: function selecionar(&$node, $id) { global $projeto; $data = $this->ctree->node_get_row_data($node); $this->node_selecionado =& $node; // this is the variable i need to store } Scott Mattocks -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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