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: 

while copying, conversion error

Former Member
0 Kudos

Hi Experts,

I have a class test, in that "request" one attribute ( type of abc class).

class name : test

attribute : request ( type ref to test1 class)

In my program, the following code gives complie error

"The type of "ABC" cannot be converted to the type of "me->request".

code is :

data : abc type ref to test1.

create object abc.

move me->request to abc.

Here me->request and abc are same type.

Please help me..

Thanks

Sridhar

4 REPLIES 4

uwe_schieferstein
Active Contributor
0 Kudos

Hello Sridhar

To me the following would make more sense:


data : abc type ref to test1.
create object abc.
"move me->request to abc.
 me->request = abc.

Regards

Uwe

0 Kudos

Hi,

Thanks your for time.

I need to copy the contents of me->request to abc.

Thanks

Sridhar

0 Kudos

Hi Sridhar,

If you want to copy Me->request to Abc then do this way..


Data : 
 abc TYPE REF TO test1.
CREATE  OBJECT abc.
abc = me->request. " Moving contents of me->request to abc

Good luck

Narin

Former Member
0 Kudos

This issue resolved.

thanks

Sridhar