How to select row data from a gtkclist?

From: Date: Sat, 06 Sep 2003 12:44:51 +0000
Subject: How to select row data from a gtkclist?
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3810@lists.php.net to get a copy of this message
Hello, i am trying to get the data from a row of a gtkclist object and i cant figure out the correct funtion or property. Currently i have this function connected to a button in the same window the clist is in. (This function is within an object for the window) function on_SelEditButton_clicked( $objPara1 )
        {
          // Get the currently selected row
          $myclist = $this->arWidgets["clist2"];
          $row     = $myclist->selection[0];
          // Get row data
          // Select the according person data
          // Put the data into the form
          print( "User selected row $row. ID=$row_data[0]\n" );
} So far the function prints the number of the row which the user has selected but i dont know how to move on from here. I tried $row_data = $myclist->get_row_data( $row ); but i get an empty out put if i try to print for example: print( "ID=$row_data[0]\n" ); Does this method not deliver an array back or is it the wrong method i am using? best regards, Arnd

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