Hello everyone,
i am working on a program right now, and i would like to be able to use a formula from the Text from a TEdit to calculate stuff.
So for example the user types: "x*x+5*x-4".
Then i want to say for example:
for x:= 1 to 10 do
begin
a:= TEdit.Text;
end;
But oviously i can't do that.
So is it possible to "convert" the string into "code", so that i can use the formula given by the user in my program, or are there other data types to accomplish that?
Thanks for any answers!