Skip to Content
0
Former Member
Jan 04, 2008 at 04:30 AM

How can I calculate -> total = num1 operator num2 ( oparator = '+' ) .

364 Views

How can I calculate dynamic operators.

I would like to calculate formular by changing text '+' to plus and text '-' to minus which user can determine formular by themself .

Example :

Data: total type p,

num1 type n value '3',

num2 type n value '5'.

parameters operator type c default '+'.

total = num1 operator num2.

  • I want "total" result like this --> total = 3 + 5 --> total = 8. ***

Thank you for your help.

Sarun