Returns the string that results when the first letter of each word in the specified source string is capitalized and all other characters in the string are converted to lowercase.
Syntax:
►►─── WORDCAP (string) ───────────────────────────────────────────────────────►◄
Invocation names:
WORDCAP
Parameters:
Specifies the string to be converted.
String can be:
The first letter in each word is capitalized and all other characters are converted to lowercase.
Example:
In the example below, the word cap function is used on employees' last names:
Initial value:
EMP-LNAME: 'O'HEARN '
Statement:
compute new-emp-lname = wordcap(emp-lname)
Returned string:
'O'Hearn '
|
Copyright © 2013 CA.
All rights reserved.
|
|