[Gambas-user] ComboBox Error when ComboBox.Remove("1") / possible bug in gb.gtk?
Benoit Minisini
gambas at ...1...
Thu Nov 27 01:09:48 CET 2008
On jeudi 27 novembre 2008, Nicolas Koch wrote:
> I am in Gambas 2.9
>
> And even if I do ComboBox.List = Dir(sPath) hidden folders show.
Of course: you must put Dir(sPath) in a string array, removes elements from
the array, and assing the array to ComboBox1.List.
> I
> was trying to hide those and ComboBox1.Remove("1") was the only way I
> could find that works. It works but spits out error as I said.
ComboBox1.Remove("1") will remove the second element of the ComboBox. And you
must use 1, not "1" which is a string. You are lucky, because Gambas
automatically converts string to numbers when he needs.
Regards,
--
Benoit Minisini
More information about the User
mailing list