Execute commands from the string
Execute commands from the string
(OP)
Field NUM1 - Real 3
Field NUM2 - Real 4
Field NUM3 - Real (result)
Entry TXT1 - String(35)
Is there a way to execute commands from the entry field in the result, like
TXT1 - Entry 'NUM1 + NUM2' - Result 7
'NUM1 / NUM2'
...
something like NUM3=Evaluate(TXT1) or NUM3=&TXT1 or something else
tnx
Field NUM2 - Real 4
Field NUM3 - Real (result)
Entry TXT1 - String(35)
Is there a way to execute commands from the entry field in the result, like
TXT1 - Entry 'NUM1 + NUM2' - Result 7
'NUM1 / NUM2'
...
something like NUM3=Evaluate(TXT1) or NUM3=&TXT1 or something else

tnx
RE: Execute commands from the string
BIND('NUM1',NUM1)
BIND('NUM2',NUM2)
BIND('NUM3',NUM3)
Entry TXT1 -> (NUM1 + NUM2)/ NUM3
Evaluate(TXT1) -> result OK
UNBIND('NUM1')
UNBIND('NUM2')
UNBIND('NUM3')