ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / DDE functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
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.
Example
// Connexion
MaConnexion = DDEConnect("Excel", Sujet)
// Erreur rencontrée ?
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.
-1Syntax error (client = *, subject = *, etc.)
1Initialization error
2The program is already stopped
3The program currently run is started while it is still registered toward WINDEV/WEBDEV (the program did not call DDEDisconnect during a previous execution)
4Too many programs are registered toward WDDE.DLL (up to 50 programs)
5Too many messages are found in memory (up to 400 messages)
6Unknown recipient
7No messages to be retrieved: the message queue is empty for the requested subject
8Insufficient memory to start the server
9The program called is unknown (invalid path)
10The program called is already run
11Error while starting the program
12Error during a memory allocation
13Error during the DDE initialization
14Error while connecting to the application (server)
15Error during the DDE transaction
16Error 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.
Component: wd300std.dll
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/25/2025

Send a report | Local help