DDEExecute() Parameters List in Manual Is Incorrect

Last reviewed: April 29, 1996
Article ID: Q103587
The information in this article applies to:
  • Microsoft FoxPro for Windows versions 2.5, 2.5a

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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.