📄 info
字号:
TArtFormula provides two styles of programming: formula style and scripting style.
The first style assumes that all statements have the form of function call.
The second style imply that you use common program language notation.
For example:
block(defines('i','n'), set('n',1), series(set('i',1), val('i')<=5, inc('i'), set('n',val('n')*val('i'))),msg('5! = '+val('n'),'result',0))
Is equal to:
begin
var 'i', 'n' end;
$n:=1;
for $i:=1; $i<=5; $i++ do
$n := $n*$i;
next;
msg('5! = '+val('n'),'result',0);
end
You can mix two styles in one program.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -