Thursday, March 28, 2013
Tip of the Day: Using Enhanced ICAP2 Function
Product: R:BASE eXtreme 9.5 (32/64)
Build..: 9.5.2.20328 or higher www.rupdates.com
Section: R:BASE String Manipulation Functions
Traditionally, (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 TEXT = (ICAP2('john smith'))
Using the prior versions of R:BASE, the value of vHyfnTxt1 would be
Daniel Day-lewis.
SET VAR vHyfnTxt1 TEXT = (ICAP2('daniel day-lewis'))
However, with the latest update of R:BASE eXtreme 9.5 (32 and 64),
the ICAP2 function
has been enhanced to support a hyphen, blank, left parenthesis, and
colon as a place
to capitalize the leading character.
Therefore, using the latest update, the value of vHyfnTxt1 would be
Daniel Day-Lewis.
Stay productive, my friends!
Very Best R:egards,
Razzak.
www.rbase.com
www.facebook.com/rbase
www.RazzakMemon.com