[Gambas-user] Setting default values on a listbox

Werner wdahn at ...1000...
Mon Feb 8 03:05:22 CET 2010


On 08/02/10 03:56, P. Hightower wrote:
> I've been trying to find an answer to this question all afternoon and can't
> seem to find it or figure it out from experimentation.
>
> I'm working on a small program that relies on ListBox controls for selecting
> an option. Right now the Form loads with the ListBox with nothing selected
> and a value of null. What I'd like is for the form to come up with a
> particular option in the ListBox preselected.
>
> I've tried setting a text value for the listbox from form_open but that only
> gives me an error saying the listbox.text is read only.
>
> What am I missing?
>   
You could use Setting for storing default and/or user set values.
http://gambasdoc.org/help/comp/gb.settings/settings

Regards
Werner





More information about the User mailing list