Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

WDDEClient:Execute() Method
Send a command to the server for execution
------------------------------------------------------------------------------

Syntax
<oDDE>:Execute( <cCmd> )   -->   x

Arguments
<cCmd> is a string specifying the command(s) to be executed.
Each command is supposed to consist of an operation enclosed
in square brackets ("[" and "]").  Each operation is a name,
optionally followed by parameters in parentheses (so they look
rather like function calls).  However, some servers do not use
this syntax, so you need to consult the documentation for the
server you are using.

Returns
The return value is not used.

Description
This method can be used to send commands to a DDE server.

Example
// From SOURCE\OO\CLASSES\DDECLIEN.PRG:
METHOD ProgMan()                                              ;
      INLINE local  oDDE,                                      ;
             local  cAdd,                                      ;
             oDDE := WDDEClient{self, "ProgMan", "ProgMan"},   ;
             ; // make a group
             oDDE:Execute("[DeleteGroup(Clip-4-Win Test)]"),   ;
             oDDE:Execute("[CreateGroup(Clip-4-Win Test)]"),   ;
             oDDE:Execute("[ShowGroup(Clip-4-Win Test)]"),     ;
             ; // somethings to see (you should have these...)
             cAdd := "[AddItem(" + GetWindowsDirectory(),     ;
             oDDE:Execute(cAdd + "\CLOCK.EXE, Clock)]"),       ;
// . . .
             ; // admire the view
             ::MsgBox("Press OK after you've had a look at" + CR ;
                      + "the new group in Program Manager"),   ;
             ; // clean up
             oDDE:Execute("[DeleteGroup(Clip-4-Win Test)]"),   ;
             0


See Also: WDDEClient:Init() WDDEClient:Stop()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson