Mathematical Expression Evaluator

Category:
Dates and Math
Type:
Classes
Difficulty:
Intermediate
Author:
Elad Rosenheim

Version Compatibility:

More information:
The zip includes an Expression Parser class that parses and computes mathematical expressions, and a demo client application.

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.

Download parser.zip