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
Answer: A
Computer Science & Information Technology
You might also like to view...
A program that can propagate without human interference is a _______
a. Virus b. Worm c. Trojan horse d. None of the above
Computer Science & Information Technology
The CSS ____________________ describes the imaginary boxes that are formed around elements in a Web page.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology