DDERequest Does Not Return Line Feed Terminator CHR$(10)Last reviewed: February 6, 1998Article ID: Q106151 |
The information in this article applies to:
SYMPTOMSWhen 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).
CAUSEIn 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.
RESOLUTIONAs 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
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |