Go to documentation repository
All custom procedures described in the script are to must be in the same program body and before procedures in which they are called.
| Code Block |
|---|
procedure ProcedureName(list of parameters){
//procedure body
} |
| Note | ||
|---|---|---|
| ||
The names of parameters are tomust consist of one uppercase character. |
Examples of use:
| Code Block |
|---|
procedure ProcedureName(A,B)
{
n=A+" "+B;
//when running macro 1 n=«Macro 1», when running macro 16 n=«Macro 16»
}
OnEvent("MACRO",N,"RUN")
{
a1=N;
a2="Macro";
ProcedureName(a2,a1);
} |