How to use vbs to convert a name to the correct case
This article mainly introduces "how to use vbs to convert the name to the correct case". In the daily operation, I believe many people have doubts about how to use vbs to convert the name to the correct case. The editor consulted all kinds of data and sorted out a simple and easy-to-use method of operation. I hope it will be helpful to answer the question of "how to use vbs to convert the name to the correct case". Next, please follow the editor to study!
The code is as follows:
StrFirstName = "kEn" strLastName = "MYEr" intFirstName = Len (strFirstName) strFirstLetter = UCase (Left (strFirstName, 1)) strRemainingLetters = LCase (Right (strFirstName, intFirstName-1)) strFirstName = strFirstLetter & strRemainingLetters intLastName = Len (strLastName) strFirstLetter = UCase (Left (strLastName, 1)) strRemainingLetters = LCase (Right (strLastName, intLastName-1)) strLastName = strFirstLetter & strRemainingLetters Wscript.Echo strFirstName, strLastName, this is the end of the study on "how to convert a name to the correct case with vbs", hoping to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!