Hi Dave,
Thanks for your interest in Syncfusion Products.
Yes. You can give your custom variable name to involve in expression which can then be parsed and computed.
Attached below is a sample for your reference in which the variable name and value for it can be registered through the following code.
//Register a variable name and its value.
string name = this.textBox2.Text; //While using variable name in textBoxes use them within braces
string val = this.textBox3.Text;
if (name.Length > 0)
this.calculator[name] = val;
With this, the registered variable name can be used in expression for computation(For.eg., if “MyVar” is the registered variable, then it can be used in computation something like below:
2*[MyVar]
Sample:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=Calculate-934704933.zipRegards,
Arulraj.A