HI,

I have a string variables which contains formula as below,

str="2+3";

Now I want to execute the above string variable (str) to produce the result.

Please suggest me to proceed.

Thanks in Advance.

Here's a great place to start, a working calculator project in C#:

Part 1
Part 2
Part 3

If that's too complicated for you here's a much simpler one:

Click Here

Amazing what 5 minutes and a search engine will produce.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.