Capitalize the First Letter of Each Word in a Sentence.

Category:
String Manipulation
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
Have you ever wanted to capitalize the first letter of each word in a given sentence? Well, the function below can help you. The function below loops through each character in a string and determines which is the first letter of which to apply uCase().

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: