Delphi 2006Table of ContentsCHM Issues
Delphi 2009 Math Parser Example

Math Parser in Delphi 2009

Delphi 2009 requires that the bcParser.pas file is compiled as a bpl package before it can be installed as a component. You can create a new package project in Delphi and add the bcParser.pass file. You right click to build, and then right click to install on the package project. Then it appears in Delphi Component Palette.

Alternatively, you can include the bcParser.pas file as a source file into your application project and use it as a library as well.

Here are screen shots in Delphi 2009:

Math Parser Component in Delphi 2009

Here is example source code to handle the new OnVariableFound event. This event handler is called for variables that are not predefined using CreateVar function for the math parser instance:

Math Parser for Delphi Event handler example

webmaster@bestcode.com