| DDEExecute | Top Previous Next | 
| Prototype 
 BoolExcuted:=DDEExecute(intHandle,strCommand) 
 Description 
 Sends to the DDE server a macro to execute. 
 Parameters 
 IntHandle: integer value that makes the handle given by the opened conversation function. 
 strCommand: string that contains the command to send. 
 Returned value 
 BoolExcuted: boolean value that indicate if the command has been accepted or not. 
 Notes 
 Some server don't allow the sending of a new command if that precedent has not already been performed. The usable commands and the relative syntax are specified in the documentation of the target DDE server. 
 Example 
 // opens a conversation using winword.exe program HandleDDE:=DDEOpenConversation('c:\programs\microsoft\winword.exe','winword','system'); 
 // send a command macro to the server DDEExecute(HandleDDE,'[Open("c:\documents\test.doc")]'); 
 // Close the conversation DDECloseConversation(HandleDDE); |