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

About constants

Former Member
0 Likes
304

can we assign some dynamic value while declaring the constant. if not give some other logic to assign dynamic value to a constant.

parameter: p_char(25) obligatory.

data: len type i.

len = strlen(p_char).

constant c value len.

here 'len' field contains variable length, this variable length has to be assigned to a constant. How can it be done, can u help me out?

can we assign some dynamic value while declaring the constant. if not give some other logic to assign dynamic value to a constant.

parameter: p_char(25) obligatory.

data: len type i.

len = strlen(p_char).

constant c value len.

here 'len' field contains variable length, this variable length has to be assigned to a constant. How can it be done, can u help me out?

1 REPLY 1
Read only

Former Member
0 Likes
287

It aint a constant if the value can change.