0

Hey guys i was just wonder how i would do this; i need to supply a value for Counts() in the triples function how would i do this to check all values in the array?

Private Counts() As Integer = {two, three, four, five, six, seven, eight, nine, ten, eleven, twelve}



    Function Triples() As Boolean
        'check if counts is 3
        If Counts() < 3 Then
            Return False
        ElseIf Counts() >= 3 Then
            Return True
        End If


    End Function
2
Contributors
2
Replies
13
Views
4 Years
Discussion Span
Last Post by brandon66
0

try

    For Each Value In Counts
        If Value = "Three" Then
        'do something
        Else
        'do something else
        End If
    Next
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.