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.com/Setting-default-values-on-a-listbox-tp27491841p27496787.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user