Re: [Vala] Cannot convert from `Gtk.ComboBoxText.get_active_text' to `string'



Hi Sascha,

doctype = cboDocType.get_active_text;

You are assigning a function (a delegate, means a pointer to a function)
to an string, thats not possible, use

  doctype = cboDocType.get_active_text();

instead (parantheses on right side) to CALL the get_active_text()
function, which returns a string.



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