Microsoft KB Archive/47832

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Can’t Search for a Negative Field Value in a Word 5.00 Macro

PSS ID Number: Q47832 Article last modified on 11-02-1994

5.00

MS-DOS

SUMMARY

With Microsoft Word for MS-DOS version 5.0, if a negative number is placed in any of the command fields that allow negative numbers (for example, the Format Paragraph “first Line:” field or the Format Division Margins “top:” field), Word cannot search for the number in a macro.

This problem seems to be an error in Word version 5.0’s search algorithm for negative values. To duplicate this problem, execute the following macro:

<esc>fp<down><right><<set level=field>> <<message field is>><<level>>

Run the macro with a positive number in the Format Paragraph “first line:” field. When you run it with a negative number, you’ll see that Word does not recognize the negative value.

Microsoft has confirmed this to be a problem in Word version 5.0. This problem was corrected in Word version 5.5.

KBCategory: kbother kbmacro KBSubcategory: Additional reference words: 5.00 5.50

============================================================================= Copyright Microsoft Corporation 1994.