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

Runtime error ASSIGN_TYPE_ILLEGAL_CAST while using ASSIGN key word

Former Member
0 Likes
611

Hi All,

I'm getting a runtime error ASSIGN_TYPE_ILLEGAL_CAST while using ASSIGN keyword in the below statement,

ASSIGN L_XVALUE(L_LENGTH) TO <TEXTLINE> TYPE 'C'. "see 581444

Here L_XVALUE is of type X with value 'ENVIRONMENTALLY HAZARDOUS SUBSTANCE, LIQUID, N.O.S' , L_LENGTH is of type I with value 51 and <TEXTLINE> is of type C wih one character length .

Should I have to declare <TEXTLINE> as same as that of L_XVALUE ( type X ).

Thanks in Advance,

Sabu.

1 REPLY 1
Read only

Former Member
0 Likes
443

Decalre <TEXTLINE> as type any.