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

to access interface attributes at runtime

Former Member
0 Likes
547

Hi,

My program contains a interface i1 in system sys1 & interface i2 in system sys2. I have to write a function in sys1 to get the attributes of either i1 or i2 based on the system , with out compilation error.

ie) if system is sys1.

x = i1=>attribute.

else if system is sys2.

x = i2=>attribute.

endif.

kindly help me to solve this issue with out getting compilation error.

Thanks,

Jey

2 REPLIES 2
Read only

RoySayak
Active Participant
0 Likes
503

Hi Jey,

You can use the USING and CHANGING to get the value without compilation error.

Regards,

Sayak...

Read only

Former Member
0 Likes
503

Hi Sayak,

kindly give an example.

Thanks,

Jey