Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > DDE_LAST_ERROR

 

 

Purpose

DDE_LAST_ERROR returns the last DDE error code.
 

Syntax

#status = DDE_LAST_ERROR($error_number, $error_text)
 

Operation

#status contains the return status.  Always set to 0, due to the asynchronous nature of DDE.

$error_number
 is the last error code returned by DDE.  A subsequent DDE call will reset this code.  If another error check is required, call DDE_LAST_ERROR before issuing another DDE call.

$error_text
 is the last error returned by DDE. 
 

Remarks

The errors are indicative of a problem with the application using DDE running on the PROIV Client PC, or with the system environment on the PC. The PROIV Client merely retrieves the standard Windows DDE error returned by the DDE application.  It does not generate any of these errors internally.

If errors do occur, you need to contact the DDE application developer for assistance. The standard Windows DDE errors, together with the return value assigned by PROIV, are listed in the DDE Error Table.  An explanation of the cause of the errors and the DDE vocabulary used are outside the scope of this guide.  Y

DDE_EXECUTE
, DDE_REQUEST, DDE_POKE, and DDE_LAST_ERROR support links between the PROIV Windows Client and Windows applications. Support is limited to the DDE Client.  Functionality is ignored in non-Windows mode.
 

Example

#STATUS=DDE_LAST_ERROR($NUM,$TEXT)
 

Comment on this topic

Topic ID: 520042

 
 
 

Table of Contents

Index

Glossary

-Search-

Back