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

Dynamic Arithmetic Operation

Former Member
0 Likes
827

Hi All,

I want to perform a dynamic arithmetic calculation, for example, There are 4 variables :

Var1 = L * B.

L = 5

B = 5.

Var2 = Var1. (Here Var2 should get a value of 25)

How to achieve this.

Thanks & Regards,

Navneeth K.

4 REPLIES 4
Read only

Former Member
0 Likes
674

Dear,

With in the loop or what can you mention mit specific about this so that i can.

Regards,

Madan.

Read only

0 Likes
674

Chk the following sample code:

it is not in netween any loop,

data:

l type c value 5,

b type c value 5,

f(10) type c,

formula(10) type c value 'l * b.'.

replace first occurence of 'l' in formula with l.

replace first occurence of 'b' in formula with b.

f = formula.

I want this operation to be performed and F value must be 25.

Read only

matt
Active Contributor
0 Likes
674

You have to use dynamic code generation. INSERT REPORT or GENERATE SUBROUTINE POOL

matt

Read only

0 Likes
674

Please provide me some sample code.