Search This Blog

How to Convert First Letter Capital in NAV Field

This will capitalize your first letter and lowercase the rest.

If varName is your variable

## Code :

newval := UPPERCASE(COPYSTR(varName,1,1)) + LOWERCASE(COPYSTR(varName,2));

##Output :
If the Input is "prateek Gupta"
then Output will be "Prateek gupta"