Mathematical Expression Evaluator
The parser supports built-in and user defined constants and built-in functions.
Also, it demonstrates a variety of error-handling and VB tricks.
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=727 and http://www.freevbcode.com/ShowCode.Asp?ID=1285. All 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.