Ask Question

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?

+1
Answers (1)
  1. 2 March, 01:40
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers