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

String problem

Former Member
0 Likes
441

Hi,

i have a variable like this :

DATA l_c type char2.

This variable can receive 1 or 2 characters, for example :

l_c = 'C'.

or

l_c = 'CA'.

In first case, i'd like to have a space at the end like

'C '.

How can i do this please ?

Cheers

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
413

You don't have to do anything. If you move "C" to the field it will have a space at the end because it is a 2 character field.

Regards,

Rich Heilman

1 REPLY 1
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
414

You don't have to do anything. If you move "C" to the field it will have a space at the end because it is a 2 character field.

Regards,

Rich Heilman