DDEExecute() Parameters List in Manual Is Incorrect

ID: Q103587

2.50 2.50a WINDOWS kbinterop kbprg kbdocerr

The information in this article applies to:

The DDEExecute() function takes no FORMAT parameter, contrary to what the documentation states. This is documented in the README.TXT file that is distributed with FoxPro for Windows. The pertinent excerpt from that file follows:

   The syntax for DDEExecute() is incorrect on page L3-363 of the
   "Language Reference" manual and in the Help file. The correct
   syntax is

      DDEExecute(<expN>, <expC1>[, <expC2>])

While there is no FORMAT parameter expected for the DDEEXECUTE function, it is required as a parameter to be passed to the optional UDF (<expC2> in the above syntax example). The six parameters, passed in the order shown, are:
Channel number     - of the server application
Action             - XACTCOMPLETE (success) or XACTFAIL (fail)
Item               - item name, such as R1C1 for an Excel cell
Data               - REQUEST (new data), POKE/EXECUTE (passed)
Format             - data format, such as CF_TEXT
Transaction Number - number returned by DDEExecute()

Additional reference words: FoxWin 2.50 2.50a DDEEXECUTE DDE EXECUTE FORMAT DOCERR KBCategory: kbinterop kbprg kbdocerr KBSubcategory: FxinteropDde

Keywords          : FxinteropDde 
Version           : 2.50 2.50a
Platform          : WINDOWS

Last Reviewed: April 30, 1996