User Defined Command

Top  Previous  Next

It is possible to create commands within a script, using DialogScript code.

 

A command is similar to a gosub.

 

Its definition starts with a label, which is the same as the command name, and ends when an exit command is reached.

 

A command is called in the same way as a built-in command (using its name).

 

The command may be followed by parameters.

 

In the command itself, the values of the parameters can be accessed using %1, %2 .. %9.

 

See also:

 

#DEFINE