Hi ALL, my program uses formulas and prompt users for variables values e.g.
then i do:Code:Height= "(x*2)-5+y/2"
now how to evaluate height into a decimal ?Code:height.replace("x","5.5").replace("y","9")
Printable View
Hi ALL, my program uses formulas and prompt users for variables values e.g.
then i do:Code:Height= "(x*2)-5+y/2"
now how to evaluate height into a decimal ?Code:height.replace("x","5.5").replace("y","9")
Doesn't the DataTable provide a method that can evaluate expressions ?
Yea...it is a bit of a hack I guess. The first one from your search has some really nice features like being able to reference properties on live objects to use as part of its evaluations.