TArtFormula description

 

Events:


How to use
TFormulaDataType = (fdtnumber, fdtstring, fdtgetvar);

TCalcItem = record
data : double;
str : string;
typ : TFormulaDataType;
end;

TCalcArray = array of TCalcItem;
PCalcArray = ^TCalcArray;

Multilang support

Creating user functions and modules
$f := file.new; // creates new file object
file($f).name := 'info';
file($f).open('read');

ArtFormula Syntax
{
 Multi-line
 comment
}

//Single line comment
begin
 $person[1].name := 'John';
 $person[1].age := 25;
 $person[2].name := 'Karl';
 $person[2].age := Input('Karl age?','>', 30);
 if $person[1].age > $person[2].age then
  print($person[1].name@' is older than '@$person[2].name);
 else
  print($person[2].name@' is older than '@$person[1].name);
 endifelse;
end
    Forward [Sub] subname(paramname1[ = defvalue1], paramname2[ = defvalue2], ...);
    ...
    Sub subname()
      begin
      ...
      end

Demo modules

TArtFormulaN

History