How to get the Class name of an element




Its really a stupid question.

If I write

$text=Gtk2::Entry->new;
or
$text=Gtk2::ComboBoxEntry->new;

how can I check later in the program if $text is an Entry or an
ComboBoxEntry ?

if($text->get_text != undef)
{
}

does not help. It already tries to call an undefined function


rds




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]