PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 is used to identify the error that occurred. You also have the ability to use ErrorInfo to find out the error code.
Caution: DDEError and ErrorInfo 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.
Example
// Connection
MyConnection = DDEConnect("Excel", Subject)
// Error occurred?
IF MyConnection = 0 THEN
SWITCH DDEError()
CASE 1: Error("Initialization error")
CASE 6: Error("The recipient is unknown")
END
END
Syntax
<Result> = DDEError([<Connection Identifier>])
<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 message to retrieve: the pile of messages 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 Identifier>: Optional integer
Connection identifier, returned by DDEConnect. If this parameter is not specified, DDEError is using the last connection handled.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
See also
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment