Language:

Proper Case

Language: English
Programming Language: VBScript
Published by: Dennis Pallett [not registered]
Last Update: 5/9/2006
Views: 527

Description

Use this function to make a word (or sentence), proper case. E.g instead of "hello, how are you?" it would be "Hello, how are you?"

Code

1 Function PCase(message) 2 3 'Make first letter uppercase 4 PCase = Replace(message, Left(message, 1), UCase(Left(message, 1))) 5 6 'Make the rest of the message lowercase 7 PCase = Replace(PCase, Right(message, Len(message) - 1), LCase(Right(message, Len(message) - 1)) 8 9 End Function

No comments avaiable

Add a comment

Name *  

Email (won't be displayed) *    

Website  

Comment *  

Sicherheitscode Security Code *    

RSS