Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding Text

Former Member
0 Likes
426

Hi all,

I m using one Text fields....want convert it in Title case..........

e.g....Text = 'sachin'......want to convert like Sachin............

is it possible.......

Regards,

Imran

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
400

Hi Imran,

follow below code:

data: loc_text(10) type c,

loc_title type c.

loc_text = 'sachin'

loc_title = loc_text+0(1)

translate loc_title to upper case

concatenate loc_title loc_text+1 to loc_text

....It will work fine

Regards

Krishnendu

2 REPLIES 2
Read only

Former Member
0 Likes
401

Hi Imran,

follow below code:

data: loc_text(10) type c,

loc_title type c.

loc_text = 'sachin'

loc_title = loc_text+0(1)

translate loc_title to upper case

concatenate loc_title loc_text+1 to loc_text

....It will work fine

Regards

Krishnendu

Read only

Former Member
0 Likes
400

hi,

There is no standard procedure to do this.

we have to do it manually.

by using offset , take the first character and convert it to upper case

and append it every time.

Regards,

Srinivas