Dynamic Build Types for GtkListStore.

From: Date: Thu, 06 Apr 2006 20:04:03 +0000
Subject: Dynamic Build Types for GtkListStore.
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6836@lists.php.net to get a copy of this message
Hi, I need help. I have tried all I know how to do to dynamically build a string for the TYPES to build a GtkListStore. In the example below I all ready know I have 11 items and build the store this way and all works fine. $store = new GtkListStore( Gtk::TYPE_STRING, Gtk::TYPE_STRING, Gtk::TYPE_STRING, Gtk::TYPE_STRING, Gtk::TYPE_STRING, Gtk::TYPE_STRING, Gtk::TYPE_STRING, Gtk::TYPE_STRING, Gtk::TYPE_STRING, Gtk::TYPE_STRING, Gtk::TYPE_STRING ); What I would like to do is build the store types on the fly based on the number columns and data types I may have at the time of a query result is returned which has a different number of columns and datatypes. Be easy on me. I am a newbie. Thanks, Eddie

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