Re: Ctree Question

From: Date: Tue, 05 Apr 2005 14:30:06 +0000
Subject: Re: Ctree Question
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5741@lists.php.net to get a copy of this message
Piero B. Contezini wrote:
The problem is, i need to set the data to a reference of a matrix, something like this: Ctree->node_set_row_data($ptr,&$data); And then, get it with $data &= ctree->node_get_row_data($ptr); But this doesnt seem to Works, while all i get is a copy of the data, not the real reference.
Have you tried passing data as an array with a reference to the real data? This way the function will make a copy of the array containing a reference. Hopefully the copy will contain a reference too. $Ctree->node_set_row_data($ptr, array(&$data)); ... $tmp = $ctree->node_get_row_data($ptr); $data = $tmp[0]; That may be a stupid idea though. I haven't tried it or thought it out to much. Its just the first thing that popped into my head. -- Scott Mattocks scott@crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks

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