ToolsAdvancedSettings Displays Duplicate Settings

Last reviewed: August 5, 1997
Article ID: Q118907
The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a
  • Microsoft Windows operating system version 3.1

SYMPTOMS

The ToolsAdvancedSettings command displays duplicate lines from .INI files even though there are no duplicate entries in the actual file.

For example, if an .INI file contains two entries in the same section such as

   [SectionName]
   Option=Item1
   Option=Item2

the entries will be displayed as:

   [SectionName]
   Option=Item1
   Option=Item1

CAUSE

ToolsAdvancedSettings uses a Windows API function called GetPrivateProfileString to retrieve the lines from the .INI file. That function will return only the first entry it finds in the file with any given option (or "Key") name. Therefore, it will repeatedly find only the first entry and display that one.

STATUS

We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

ToolsAdvancedSettings is a Word command that allows you to view or change settings in a settings file, such as the WINWORD6.INI or the WIN.INI file.

You can run this command by choosing Macro from the Tools menu. From the Macros Available In list, choose Word Commands. In the Macro Name list, select ToolsAdvancedSettings, and choose the Run button.

In the Categories text box, type the section name and the name of the .INI file in parentheses. For example:

   boot(system.ini)

The settings found in this section of the named .INI file will appear in the Startup Options list. When you are finished viewing these settings, choose the OK or Cancel button.

Note: The .INI file must be located in the Windows program directory.

REFERENCES

"Microsoft Word Developer's Kit," version 6.0, pages 740-741

Kbcategory: kbusage kbmacro KBSubcategory:


Additional reference words: 6.0 6.0a toolsadvancedsettings word6
tools advanced settings duplicate winword
Version : 6.0 6.0a
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: August 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.