Ask Question
23 June, 09:58

The strFirstName and strLastName variables contain the strings "Jane" and "Jones," respectively. Which of the following statements will display a string as "Jones, Jane" (the last name, a comma, a space, and the first name) in the lblFullName control?

+4
Answers (1)
  1. 23 June, 10:06
    0
    lblFullName = strLastName & ", " & strFirstName

    Explanation:

    The task involved here is to combine the two sting variables separated with a comma. in visual basic string concatenation can be be done with & operator the + (addition) operator may also be used as well, but this is not recommended. Observe that the lblFullName control was assigned three strings (strLastName, ", " and strFirstNam) The comma in the quotation marks is also treated as a string.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “The strFirstName and strLastName variables contain the strings "Jane" and "Jones," respectively. Which of the following statements will ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers