Re: "Call to a member function on a non-object in C:\......."
| From: | dpgirago at mdanderson dot org | Date: | Fri, 21 May 2004 15:18:32 +0000 |
| Subject: | Re: "Call to a member function on a non-object in C:\......." | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-4536@lists.php.net to get a copy of this message | ||
Rhys,
To use my previous example within a function, you need to access the
object through the GLOBALS array...
$row = $GLOBALS['cListPatientID']->selection[0];
$selectedPID = $GLOBALS['cListPatientID']->get_text($row,0);
> "Call to a member function on a non-object in C:\......."
HTH,
dave