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

Unicode Error

Former Member
0 Likes
274

Hi ,

I got an unicode error in the following code , the line is shown in bold.

form enc_char using char

changing enchar.

field-symbols : <n> type x,

<c> type c .

data : a type i.

data : x type x.

assign char to <n> casting.

move <n> to a.

a = a + 22.

move a to x.

assign x to <c> casting type c.

move <c> to enchar.

endform.

And I am getting the error message as 'The length of "X" in bytes must be a multiple of the size of a Unicode

character, regardless of the size of the Unicode character.

How to rectify the error.

Regards,

Kannan

1 REPLY 1
Read only

Former Member
0 Likes
256

ASSIGN CRTLZ TO <F> TYPE 'C'.

InCorrect

ASSIGN crtlz TO <f> casting TYPE (L_type)

data: l_type(10) type c value 'CHAR02'.

Correct

Hope this helps!