Skip to sidebar Skip to content
Ipercube Technical
Jack of all trades, master of none
Date: Time: - Stardate:
Welcome, Log in by clicking  Here!
SS64
MDN
Stack
Code
GitHub
Wiki
Convert
V Studio
  • Home
  • VB Functions
    • Access Functions
    • Assembly Info
    • Color/Image Functions
    • Data Table Functions
    • Email Functions
    • Active Directory Functions
    • LDAP Functions
    • Excel Functions
    • Logging Functions
    • Source Code Retrieval
    • String Functions
    • Sql Functions
    • Object Utilities Functions
    • System and Utilities
    • Utility Forms
  • VB Classes
    • Environment Variables Helper
  • ABAP
    • ABAP Reports
    • ABAP HTTP Functions
Ipercube Technical
  • Home
  • VB Functions
    • Access Functions
    • Assembly Info
    • Color/Image Functions
    • Data Table Functions
    • Email Functions
    • Active Directory Functions
    • LDAP Functions
    • Excel Functions
    • Logging Functions
    • Source Code Retrieval
    • String Functions
    • Sql Functions
    • Object Utilities Functions
    • System and Utilities
    • Utility Forms
  • VB Classes
    • Environment Variables Helper
  • ABAP
    • ABAP Reports
    • ABAP HTTP Functions

String Normalization – Convert a string to Proper Case

Converts a string to proper case (title case), capitalizing the first letter of each word.

This function uses the current thread’s culture to apply title casing rules. It first converts the entire string to lowercase, then capitalizes each word.

VB
    Public Function ToProperCase(InputString As String) As String

        If InputString Is Nothing Then Return String.Empty

        Dim CultureInfo As CultureInfo = Thread.CurrentThread.CurrentCulture
        Dim TextInfo As TextInfo = CultureInfo.TextInfo

        Return TextInfo.ToTitleCase(InputString.ToLower)

    End Function

Posted by ipercube


© 2026 Ipercube Design