How too use ShowCheckListBox?

Hi there,

How too use ShowCheckListBox?

  Dim List As New List(Of String)
    List.Add("Value")
    List.Add("Value2")
    
    Dim List2 As New List(Of Boolean)
    List.Add(True)
    List.Add(False)
    
    Dim b() As Boolean = Rhino.UI.Dialogs.ShowCheckListBox("Title", "Message", List, List2)

I’m running this obove. But nothing happens. What am I doing wrong here?

Cheers.

It looks like it’s just that List2 is empty.

Under “Dim List2 As New List (of Boolean)”, I changed:
List.Add(True) to List2.Add(True) and
List.Add(False) to List2.Add(False) and it seemed to work fine.

The darn copy+paste in programing… I’ve got bad memories of it since the 80s.

Well… tbh… I didn’t even copy paste it… I think a dumb mistake. Thanks for solving it :slight_smile: