uses comobj
function calculate(express: string): string;
var
vscript: Variant;
begin
vscript := createoleobject('scriptcontrol');
vscript.language:='javascript';
result := vscript.eval(express);
end;
uses comobj
function calculate(express: string): string;
var
vscript: Variant;
begin
vscript := createoleobject('scriptcontrol');
vscript.language:='javascript';
result := vscript.eval(express);
end;