(ICAP2(arg))
Converts arg to a string with an initial capital letter on each word. This is also known as Word Case.
In the following example, the value of vicap2 is John Smith.
SET VAR vicap2 = (ICAP2('john smith'))
In the following example, the value of vHyfnTxt1 is Daniel Day-Lewis.
SET VAR vHyfnTxt1 TEXT = (ICAP2('daniel day-lewis'))
In the following example, the value of vName2 is Brian O'Rielly.
SET VAR vName TEXT = ('BRIAN O''RIELLY')
SET VAR vName2 TEXT = (ICAP2(.vName))
In the following example, the value of vText2 is David Chadwick's Office Supplies.
SET VAR vText TEXT = ('DAVID CHADWICK''S OFFICE SUPPLIES')
SET VAR vText2 TEXT = (ICAP2(.vText))