ToolsAdvancedSettings Displays Duplicate Settings

ID: Q118907


The information in this article applies to:
  • Microsoft Word for Windows, versions 6.0, 6.0a
  • Microsoft Windows 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

Additional query words: 6.0 toolsadvancedsettings word6 tools advanced settings duplicate winword

Keywords :
Version : WINDOWS:3.1,6.0,6.0a
Platform : WINDOWS
Issue type :


Last Reviewed: January 7, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.