Skip to Content
0
Former Member
Apr 09, 2008 at 03:21 AM

assign x type data to xstring type issue

282 Views

hi

how assign x type to xstring.

and get actual length.

example:

data: len type i,

x1(300) type x,

xs type xstring.

case 1:

xs = '2222'.

len = xstrlen( xs ).

we will get len value is 2 which result that i want to get.

case 2.

x1 = '2222'.

len = xstrlen( x1 ).

we will get len value is 300.

xs = x1.

len = xstrlen( xs ).

we will get len value is 300.

i know in var x1 will fill with '00' from left to right. but i want to know actual length not definition lenth.

thank you very much advance.