|
|
|
|
|
DDEError (Function) In french: DDEErreur 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. Caution: DDEError and ErrorInfo do not return the same error codes in the event of a DDE error.. Indeed, DDEError returns the Windows error code while ErrorInfo returns an error code specific to WINDEV or WEBDEV.
MaConnexion = DDEConnect("Excel", Sujet)
IF MaConnexion = 0 THEN
SWITCH DDEError()
CASE 1 : Error("Erreur d'initialisation")
CASE 6 : Error("Le destinataire est inconnu")
END
END
Syntax
<Result> = DDEError([<Connection ID>])
<Result>: Integer Code of last DDE error that occurred on the specified DDE connection. | | -1 | Syntax error (client = *, subject = *, etc.) | 1 | Initialization error | 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) | 6 | Unknown recipient | 7 | No messages to be retrieved: the message queue 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 ID>: Optional integer Connection identifier, returned by DDEConnect. If this parameter is not specified, DDEError uses the last connection handled.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|