Expression Evaluator (STRING Calculator)

Category:
Dates and Math
Type:
Applications
Difficulty:
Advanced
Author:
Konstantin Tretyakov

Version Compatibility: Visual Basic 5

More information:
I think many of you have asked for such a thing. You give it a string like "2+3^(5-3*SIN(18-5^2))/SQR(2)+LOG(8)" .. etc. And it returns the result of calculation.

I am waiting for your comments and improvements.

FreeVBCode.com Note: This is one of three expression evaluator classes on the site; the others are at http://www.freevbcode.com/ShowCode.Asp?ID=1263 and http://www.freevbcode.com/ShowCode.Asp?ID=1285. All three are very good, so if you need this functionality, we recommend evaluating them all, or even trying to combine them.


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download fvbeval.zip