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

Last reviewed: February 6, 1998
Article ID: Q106151
The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, version 7.0

SYMPTOMS

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).

CAUSE

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.

RESOLUTION

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.

REFERENCES

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


KBCategory: kbmacro
KBSubcategory:
Additional query words: 6.0 mac ole dde macro automation wordbasic
6.0a 6.0c 7.0 word95 word7 word6 macword winword
Keywords : kbole kbmacro
Version : 6.0 6.0a 6.0c 7.0
Platform : WINDOWS


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: February 6, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.