Visual Basic 2005

pts.
Tags:
Database
IBM DB2
Oracle
My task is to write a program to take a input from a user which in this case is a name (forename & surname) and create a VB 2005 program to capitalise the first letter of the first name and surname although also ensure that the remainder of the name is lower case. How do I do this ???

Answer Wiki

Thanks. We'll let you know when a new response is added.

I presume you are doing this for a class project.

First, change the entire string you get to lower case using the LCase function. Then change the first character in the string to uppercase using the UCase function. Then find the location of the blank separating the two parts of the name using the InStr function and change the following character to uppercase. You use the Mid statement/function to change a character within a string.

Hope this helps, and happy programming.

Cheers,
Phil

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following