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/106151

From BetaArchive Wiki

DDERequest Does Not Return Line Feed Terminator CHR$(10)


The information in this article applies to:

  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows, version 7.0


When you run a Word 2.x DDE macro that includes a DDERequest$() function in Word 6.0, unexpected results may occur. On examination of your macro, you will see that the DDERequest$() function doesn't return the line-feed terminator, CHR$(10).


In Word version 6.0 for Windows, the DDERequest$() function returns a string followed by a single ANSI character, CHR$(13). In Word version 2.x for Windows, DDERequest$() returns a string followed by two ANSI characters, namely CHR$(13) and CHR$(10).

Note: Chr$(13) is the carriage return control code and Chr$(10) is the line feed control code.

Microsoft changed the DDERequest$() function in Word 6.0 to be consistent with Word for the Macintosh. In this version, Word for Windows and Word for the Macintosh share the same file format, features, appearance, and documentation.


As a result of this change, you must modify your Word 2.x macros to use them in Word 6.0 so they expect a single terminator.


"Microsoft Quick Results," version 6.0, "Before You Begin" chapter

Additional query words: 6.0 mac ole dde macro automation wordbasic 7.0 word95 word7 word6 macword winword

Keywords : kbole
Issue type :
Technology :

Last Reviewed: November 4, 2000
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.