info
来自「ArtFormula package contains two nonvisua」· 代码 · 共 20 行
TXT
20 行
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 + =
减小字号Ctrl + -
显示快捷键?