Iterate through listbox

  1. 2 weeks ago

    Alexander v

    Mar 21 Europe (Houten, The Netherland...

    I lost it. What is now the correct statement to iterate through a listbox? 2019.3.1

    I used

    For each FileRow as ListboxRow in FileListBox but that gives me

    MainWindow.PushButton2.Action, line 1 This object does not implement the Iterable interface and cannot be used in a For Each loop For each FileRow as ListboxRow in FileListBox

    But for each Filerow as Listbox.row doesn't exist anymore.

  2. Markus R

    Mar 21 Pre-Release Testers, Xojo Pro Europe / Germany / Lower Saxon...
    For Each row As ListboxRow In Listbox1.Rows
      System.DebugLog(row.ColumnValueAt(0))
    Next

or Sign Up to reply!