Delphi Math Parser Example Code
Delphi example of using TbcParser. This example shows the use of a user defined custom function and a user defined variable.
To register a custom function you associate the Pascal function address with a name that will be used in the expression. There are 3 types of user defined functions. These are created using:
- TbcParser.CreateOneParamFunc
- TbcParser.CreateTwoParamFunc
- TbcParser.CreateNParamFunc
Below, green mark is the use of registered custom function name:
|