Text <> Formula

Hello friends,
I was wondering if it was possible to convert a characters string into a directly exploitable formula after or during compiling the program?

Example :

Chain = "y = a*x^2 + b*x + c"
a = 2
b = 3
c = 4
x = 1

// Formula : 
y = a*x^2 + b*x + c

// Result :
y = 9

Thanking you.

This can help:
https://documentation.xojo.com/api/code_execution/xojoscript.html

or this :

1 Like

and also this :

1 Like

Merci Michel et Jean-Yves,
I surely did not fully understand, it looks like these cases deal with an expression but can we deal with a function or a formula with associated variables?
Also it seems to work for versions after RB 2010, no?