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:
Verified
Q32: In Visual Basic 2015,you use a(n)_ to
Q33: Which of the following shortcut keys should
Q34: Assume that the value of the string
Q35: Programmers use the _ property of the
Q36: _ keys appear to the right of
Q38: The _ allows you to use pattern-matching
Q39: The strPassword variable contains eight characters.Two of
Q40: The strState variable should contain two uppercase
Q41: The strSerialNum variable contains the string "DRY259614".Write
Q42: What is the difference between a menu
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents