用户函数testFunction
Params
NumericRef sumu;
NumericArrayRef abc;
Vars
Numeric i;
Begin
sumu:=0;
for i=0 to 9{
abc[i]=abc[i]+CurrentBar;
}
For i=0 to 9 {
sumu=sumu+abc[i];
}
Return True;
End
应用
Vars
Numeric sumu;
NumericArray abc;
Numeric i;
Begin
If(CurrentBar==0){
for i=0 to 9{
abc[i]=i;
}
}//
testfunction(sumu,abc);
PlotString("hehe",text(sumu));
End