TbcParserTable of ContentsDelphi 10.1 Berlin
Delphi Example

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:

  1. TbcParser.CreateOneParamFunc
  2. TbcParser.CreateTwoParamFunc
  3. TbcParser.CreateNParamFunc

Below, green mark is the use of registered custom function name:

webmaster@bestcode.com