Microsoft KB Archive/113286

{|
 * width="100%"|

Doc Err: SelInfo Has 36 Options, WDK Lists Only 32

 * }

Q113286

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 6.0, 6.0a
 * Microsoft Word for the Macintosh, versions 6.0, 6.0.1

-

SUMMARY
The "Microsoft Word Developer's Kit" incorrectly states on page 667 that the SelInfo function can return only 32 types of information on the current selection. As stated (correctly) in Word Help, SelInfo can actually return 36 types of information.

MORE INFORMATION
The "Microsoft Word Developer's Kit" explains the first 32 types of information available for the SelInfo function, but it does not mention options 33 through 36.

Options 33 through 36 are described in Help as follows:

  Type  Explanation ---

33   The kind of header or footer containing the selection:

-1       None (the selection is not in a header or footer) 0 (zero) Even-page header 1        Odd-page header (or the only header if there are not odd                   and even headers) 2        Even-page footer 3        Odd-page footer (or the only footer if there are not odd                   and even footers) 4        First-page header 5        First-page footer

34   Returns -1 if the active document is a master document (that is,         if it contains at least one subdocument).

35   Returns -1 if the selection is in the footnote pane or in a         footnote in page layout view.

36   Same as 35, but for endnotes.