Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/103587

From BetaArchive Wiki

DDEExecute() Parameters List in Manual Is Incorrect

ID: Q103587

2.50 2.50a WINDOWS kbinterop kbprg kbdocerr

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

Keywords          : FxinteropDde 
Version           : 2.50 2.50a
Platform          : WINDOWS

Last Reviewed: April 30, 1996
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.