|
|
This function returns the return code of a command or a function. The return code has been already implemented in some functions and commands; however, is can also be set using the command 'result_set'. |
||||||
| The return code must be queried immediately after command or function execution because it is always overwritten. | |||||||
Syntax: |
|||||||
| {INT_VAR}= result_get() | |||||||
I/O parameters:
|
|||||||
Return value: |
|||||||
|
|||||||
Example: |
|||||||
| Declaration of Variables | |||||||
10 C Deleting file "test1.file"
20 delete("\tmp\test1.file")
30 DOKU_INT_2=result_get()
40 if (DOKU_INT_2 != 0)
50 put("ERROR: File could not be deleted!")
60 endif
|
|||||||
| Result: | |||||||
| If the file "test1.file" does not exist in the "\temp" directory, an error message is displayed. | |||||||
|
Functions and commands: Other Functions and Commands |