Dim Friends(0 To 10) As String Private Sub Command1_Click() If Friends(any) = text1.text Then '(what should I put here instead of any?) MsgBox "You already have " & text1.text " in the list else end if End Sub
In above code
I have an empty array of 10 friends
I have a button,
on pressing it I can add a new friend in any array
I want such a code:
While adding a new friend, it should prompt if the friend is already available in array.
Please Help! :icon_confused: