Skip to Content
Former Member
Nov 04, 2009 at 09:12 AM

Need help regarding Arithmetic Expressions


Hi Experts,

I have a requirement where in I need to pass Arithmetic Expressions (+,-,/) as constants to a subroutine.For ex:

constants:c_p type char1 value '+',

c_m type char1 value '-',

data:v_a type char1 value '2',

v_b type char1 value '6',

v_r type string.

v_r = v_ a + v_b.

In the above instead of + I want use c_p.Please help me out is there any other way in defining Arithmetic expresiions where I could use constants or variables instead of directly using these expressions(+,-).Thanks in advance.

With Regards,