Application Development 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: 

String problem

Former Member
0 Kudos

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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