web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / The Dynamics 365 Library / AX 2012: Convert string to ...

AX 2012: Convert string to TitleCase using str2CapitalWord function

Faisal Fareed Profile Picture Faisal Fareed 10,796 User Group Leader
Requirement: Show customer name on report in TitleCase e.g. faisal fareed should display as Faisal Fareed
Solution: str2CapitalWord function does the trick and accomplished the requirement.

input string: "faisal fareed"
output string: "Faisal Fareed"

P.S. There is another function str2Capital which just converts the first letter of the first word e.g. "faisal fareed" will be converted to "Faisal fareed"

This was originally posted here.

Comments

*This post is locked for comments