Solved

The StrPhone Variable Should Contain Only Numbers and No Dashes

Question 47

Multiple Choice

The strPhone variable should contain only numbers and no dashes (-) .An error message should display if there is a dash anywhere in the variable.Which of the following statements determines whether the variable contains a dash in order to display the message?


A) If strPhone.Contains("-") = True Then
B) If strPhone.Contains("-") = False Then
C) If strPhone Like "-" Then
D) If strPhone.Contains(#######) = False Then

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions