Return codes

The result of the function is of type NUMBER and can be one of the values described in the following table.

<0:

The command could not be started. The values is equal to the negative error code. Waitparameter is N:

0:

The command was started. Waitparameter is Y:

>= 0:

The command was started. The value is equal to the return code of the command.

An example is provided here.

NUMBER return_code 

ASSIGN return_code := system("c:\winnt\system32\notepad.exe" ; "N")
#
@(return_code)
#

The function only works if notepad is located in c:\winnt\system32.