Цитата:
Module StdInterpreter implements a plug-in service for BlackBox: an interpreter for some forms of Component Pascal procedure calls. The text string to be interpreted must conform to the following syntax:
Command = Call { ";" Call }.
Call = ModuleName "." ProcedureName [ "(" Parameter { "," Parameter } ")" ].
Parameter = Integer | String.
Integer = Decimal | Hex.
Decimal = [ "-" ] Digit { Digit }.
Hex = [ "-" ] HexDigit { HexDigit } "H".
String = " ' " { Char } " ' ".
The calls are executed in the given sequence. Parameters corresponding to integers must be of type INTEGER. Parameters corresponding to strings must be value or IN parameters of type ARRAY OF CHAR. The called procedures must not return a value.
Команды в кнопках имеют такие же правила, как и коммандеры, и могут принимать на вход строку/число.
Соответственно, можно например написать
Код:
Operation* (IN o: ARRAY OF CHAR)
, затем вызывать команды как обычно
Код:
(!)"Example.Operation('A')"
В коде процедуры Operation обращаться к первому символу
o[0].