Returns the runtime status report of a DDE function.
Indeed, most of the DDE functions return True
if successful and False
if a problem occurs. DDEError
returns the error details. You can also use ErrorInfo
to get the error code.
do not return the same error codes if a DDE error occurs. Indeed, DDEError
returns the Windows error code while ErrorInfo
returns an error code specific to WINDEV or WEBDEV.
MyConnection = DDEConnect("Excel", Subject)
// Error occurred?
IF MyConnection = 0 THEN
CASE 1: Error("Initialization error")
CASE 6: Error("The recipient is unknown")
<Result> = DDEError([<Connection identifier>])
Code of last DDE error that occurred on the specified DDE connection.
|-1||Syntax error (client = *, subject = *, etc.)|
|2||The program is already stopped|
|3||The program currently run is started while it is still registered toward WINDEV/WEBDEV (the program did not call DDEDisconnect during a previous execution)|
|4||Too many programs are registered toward WDDE.DLL (up to 50 programs)|
|5||Too many messages are found in memory (up to 400 messages)|
|7||No message to retrieve: the pile of messages is empty for the requested subject|
|8||Insufficient memory to start the server|
|9||The program called is unknown (invalid path)|
|10||The program called is already run|
|11||Error while starting the program|
|12||Error during a memory allocation|
|13||Error during the DDE initialization|
|14||Error while connecting to the application (server)|
|15||Error during the DDE transaction|
|16||Error while retrieving a DDE data|
<Connection identifier>: Optional integer
Connection identifier, returned by DDEConnect. If this parameter is not specified, DDEError is using the last connection handled.