Please enable JavaScript to view this site.

ESL Documentation

Invoked in:

Server

Message from Partner:

WM_DDE_EXECUTE

 

Remarks:

This event is invoked in a server when a client requests that one or more commands be executed.  The server is expected to retrieve the data using DDEGetStringData, and execute the commands contained therein.

 

DDEGetStringData must be called before calling DDEAck.

 

Required Response:

Upon receipt of a request that one or more commands be executed, the DDE protocol requires that the server respond as follows.  The server must respond to this event before attempting to transmit another event to the partner.

Acknowledgment

Subroutine Called

Message

Positive

(Command was executed)

DDEAck with

DDE_FACK status flag set

WM_DDE_ACK with

DDE_FACK status bit set

Negative

(Command cannot be executed)

DDEAck with

DDE_FACK status flag not set

WM_DDE_ACK with

DDE_FACK status bit cleared

Default Processing:

The DDE DLL default processing is to send a negative acknowledgment if the ESL program does not send an acknowledgment.

Available Queries:

DDEGetAppName

DDEGetTopic

DDEGetErrorID

Example:

response to stimulus DDE DDE_EXECUTE

   copy eventparam to ConvID_IV

   copy DDEGetStringData (ConvID_IV) to

Command_SV

   if (ExecuteCommand (ItemName_SV)) then

      copy " " to Format_SV

      copy DDESetStatusFlag (0, DDE_FACK) to Status_IV

   call DDEAck (ConvID_IV, ItemName_SV, Format_SV, Status_IV)

   copy DDEGetStringData (ConvID_IV) to StringData_SV

   else

   copy 0 to Status_IV

   call DDEAck (ConvID_IV, ItemName_SV, Format_SV, Status_IV)

   end if