Microsoft KB Archive/70736

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 19:29, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q70736 to Microsoft KB Archive/70736 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UtilGetSpelling() Macro Gives Out of Memory Error PSS ID Number: Q70736 Article last modified on 07-14-1994

1.00 1.10 1.10a 2.00 2.00a 2.00a-CD 2.00b 2.00c

WINDOWS

The information in this article applies to:
- Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c

Summary:

Running a macro in Word for Windows that uses the UtilGetSpelling() function may return an out of memory error message.

More Information:

Steps to Reproduce Problem

  1. Create the following macro:

     Sub Main
     Dim a$(10)
     Print UtilGetSpelling(a$())
     End Sub
  2. Open up a new document.

  3. Type:

    We the People

  4. Run the above macro.

The result of running this macro is an out of memory error message. The result should be a -1 printed in the status bar.

The UtilGetSpelling(a<math display="inline">()) fills the array (a</math>()) with all available spellings of a word. The command returns 0 (zero) if the word is spelled correctly and -1 if the word was not found in the dictionary.

When “We the People” is highlighted first and then the macro is run, -1 is displayed in the status bar as expected.

Microsoft has confirmed this to be a problem in Word for Windows versions 1.00, 1.10, and 1.10a. We are researching this problem and will post new information here as it becomes available.

Reference(s):

“Microsoft Word for Windows and OS/2 Technical Reference,” page 274.

Additional reference words: w4wproof w4wmacro winword 1.00 1.10 1.10a 2.00 2.00a 2.00a-CD 2.00b 2.00c

=================================================================

Copyright Microsoft Corporation 1994.