Previous Topic: IndexNext Topic: Insert


Initial Uppercase

Returns the string that results when the first letter in the specified source string is capitalized and all other characters in the string are converted to lowercase.

Syntax:

►►─── INITCAP (string) ───────────────────────────────────────────────────────►◄

Invocation names:

INITCAP

Parameters:

string

Specifies the string whose first letter is to be capitalized.

String can be:

Example:

In the example below, the initial cap function is used on employees' last names:

Initial value:
    EMP-LNAME: 'O'HEARN            '
Statement:
    compute new-emp-lname = initcap(emp-lname)
Returned string:
    'O'hearn           '