Initializing help system before first use

callproc

callproc


Purpose
Call a zero-argument public procedure with the given name
Synopsis
procedure xreflect~callproc( procname:string )
Argument
procname 
The name of the procedure to call
Example
The following:
public procedure myproc
 writeln('hello world');
end-procedure
callproc('myproc')
 
produces this output:
hello world
 
Further information
1. If procname is not the name of a 0-argument procedure, the model will terminate with a runtime error.
2. If procname is overloaded, callproc will call the overload that has 0-arguments.
Related topics