ID: Q118907
The information in this article applies to:
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
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.
We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
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.
"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
Last Reviewed: August 5, 1997