title: i need to fix this line it says object required: If FullName.Contains(",") Then
body: <p>i need to fix this line it says object required:
  If FullName.Contains(",") Then</p>
  
  <p>This is my code:</p>
  
  <pre><code>Private Sub retrieveinput_Click()
       FullName = inputText.Text
       Dim NameArray() As String
  
       If FullName.Contains(",") Then
           NameArray = Split(FullName, ",")
           First = NameArray(1)
           Last = NameArray(0)
       Else
           NameArray = Split(FullName)
           First = NameArray(0)
           Last = NameArray(1)
       End If
  
       TextBox2.Text = First
       TextBox3.Text = Last
  
  End Sub
  </code></pre>