The B3Evaluator is a simple to use string formula evaluator.
The B3Evaluator can perform expression evaluations on numerical expressions as well as string expressions.
Features Include:
Variables
Immediate Variables (special variables that are called back to your code)
User Defined Functions
Standard Algebraic Notation
PI and E predefined constants
User definable TRUE/FALSE
Many of the standard mathematical functions are already built-in (Sin, Cos, Tan, Min, Max, etc.) as well as the standard string functions (Left, Right, Mid, Instr, BkInstr and Replace).
It's as easy to use...
string result = B3Eval1.Eval( "(2 + 2) / PI");
Use it for evaluating embedded formula in Grids or other like controls. With the use of the Evaluators "Immediate Variables" you can easily embedded cell references such as...
string result = B3Eval1.Eval( "Sum(@B3:B12)");
Easy to add your own functions to the Evaluator. Simply inform the evaluator of your function name and how many parameters you are expecting.
B3Eval1.AddProtoType("MyFunction", 3);
An event will be fired when the evaluator needs your function resolved. It will provide the function to process with the parameters already evaluated and ready for you to use.
Image Gallery - Click Image to Enlarge
DevRewards
Earn Free .Net Components and Tools, and Rewards like XBOX's, Ipods, and more by buying the tools you need.
Becoming a member is free - earn points with every purchase, save over time, or redeem immediately.
Join Now - It's Free, and Receive 5,000 points just for signing up!