Re: [Gambas-user] Setting default values on a listbox

2010-02-08 Thread Dag Jarle Johansen
Hi, I agree, if I had a set of Listboxes, where each stores one option, the options wan't be changeable, and all you have to do is to store the index of each listbox. Where to store - what one likes, settings are surely ok. regards Dag Am Montag, den 08.02.2010, 00:44 -0800 schrieb charlesg: >

Re: [Gambas-user] Setting default values on a listbox

2010-02-08 Thread charlesg
Hi I read the question differently from Werner (probably incorrectly!) I think you want: PUBLIC SUB Form_Open() DIM j AS Integer FOR j = 40 TO 50 ListBox1.Add(Str(j) & " " & Chr(j), j) NEXT ListBox1[5].selected = TRUE END -- View this message in context: http://old.nabble

Re: [Gambas-user] Setting default values on a listbox

2010-02-07 Thread Werner
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 t

[Gambas-user] Setting default values on a listbox

2010-02-07 Thread P. Hightower
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