Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,104 questions

40,777 answers

573 users

How to create and use a list of Boolean in VB.NET

Learn & Practice SQL


117 views
asked Sep 26, 2018 by avibootz
edited Sep 26, 2018 by avibootz

2 Answers

0 votes
Module Module1

    Sub Main()

        Dim list As New List(Of Boolean)

        list.Add(True)
        list.Add(False)
        list.Add(True)
        list.Add(True)

        For i = 0 To list.Count - 1
            Console.WriteLine(list.Item(i))
        Next

    End Sub

End Module

' run:
' 
' True
' False
' True
' True

 





answered Sep 26, 2018 by avibootz
0 votes
Module Module1

    Sub Main()

        Dim list As New List(Of Boolean)

        list.Add(True)
        list.Add(False)
        list.Add(True)
        list.Add(True)

        For Each item As Boolean In list
            Console.WriteLine(item)
        Next

    End Sub

End Module

' run:
' 
' True
' False
' True
' True

 





answered Sep 26, 2018 by avibootz

Related questions

1 answer 84 views
2 answers 127 views
2 answers 123 views
1 answer 85 views
2 answers 101 views
101 views asked Sep 22, 2018 by avibootz
...