Font$(0) Returns Default Font Name in Word for WindowsLast reviewed: July 30, 1997Article ID: Q72800 |
The information in this article applies to:
SUMMARYIn the WordBasic language used in Microsoft Word for Windows and Microsoft Word for OS/2, Font$() returns the font name of the current selection. If a COUNT argument is specified, Font$() returns the name of the font COUNT. COUNT must be in the range of 1 to CountFonts(). However, if the COUNT argument is 0 (zero), the name of the default font for the document is returned.
MORE INFORMATIONFor example, CountFonts() might return a value of 4. This means that there are four fonts in the Format Character Font list, corresponding to the number of fonts available with the selected printer. Font$(1) would correspond to the first font in the list, Font$(2) the second, and so on. Font$(0) will return the name of the current default font. Reference(s): "Microsoft Word for Windows Technical Reference," version 1.0, pages 37 and 54. "Microsoft Word for Windows and OS/2 Technical Reference," version 1.0 pages 145 and 179.
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |