[Gambas-user] ListBox selection

tobias tobiasboe1 at ...20...
Wed Jun 15 12:45:29 CEST 2011


Hi,

yes, it's pretty straightforward, just use ListBox[Index].Selected (just 
to get their texts not the whole object in this example):

   DIM i AS Integer

   FOR i = 0 TO ListBox1.Count - 1
     IF ListBox1[i].Selected THEN
       PRINT ListBox1[i].Text
     ENDIF
   NEXT

regards,
tobi




More information about the User mailing list