Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute commands from the string

Status
Not open for further replies.

imemoje

Programmer
Jan 22, 2008
11
BA
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
 
Founded,

BIND('NUM1',NUM1)
BIND('NUM2',NUM2)
BIND('NUM3',NUM3)

Entry TXT1 -> (NUM1 + NUM2)/ NUM3

Evaluate(TXT1) -> result OK

UNBIND('NUM1')
UNBIND('NUM2')
UNBIND('NUM3')

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top