Note: Built-In Function Rules Usage Options
Disconnects the current function from a previously connected server.
A request to disconnect a server that is already disconnected will be ignored. No error will result.
Arguments
|
Return Values
|
Technical Notes
A Note on Error Handling
It is very strongly recommended that you avoid building complex error handling schemes into your applications. Use a very simple trap like this at all levels of your application.
if (#retcode *ne OK)
abort msgtxt('Failed to .............................')
endif
Let the standard error handling Built-In Function to every generated application take care of the problem. Situations have arisen where user defined error handling logic has become so complex as to consume 40 - 50% of all RDML code (with no obvious benefit to the application). Do not fall into this trap.