WordBasic Command to Determine the Language Version of Word

ID: Q115858

6.00 6.00a WINDOWS kbusage kbmacro

The information in this article applies to:

SUMMARY

In Word 6.0 for Windows, the AppInfo$() function can be used to return the language version of Word. The AppInfo$() function can return 25 types of information about the Word application. Type number 16 returns the language version of Word. For example, AppInfo$(16) returns "English (US)" for the U.S. release of Word for Windows

The following macro displays the language version of Word in a message box.

Sub MAIN
a$ = AppInfo$(16) MsgBox a$
End Sub

The following language strings are returned by the AppInfo$(16) function.

   Language                  AppInfo$(16) Return String
   ========                  ==========================

   Brazilian Portuguese      Portugues (BR)
   Catalan                   Catala
   Danish                    Dansk
   Dutch                     Nederlands
   Dutch (preferred)         Nederlands (voorkeur)
   English (Australian)      English (AUS)
   English (U.K.)            English (UK)
   English (U.S.)            English (US)
   Finnish                   Suomi
   French                    Francais
   French Canadian           Canadien Francais
   German                    Deutsch
   Italian                   Italiano
   Norwegian Bokmål          Norsk Bokmal
   Norwegian Nynorsk         Norsk Nynorsk
   Portuguese                Portugues (POR)
   Spanish                   Espanol
   Swedish                   Svenska
   Swiss German              Deutsch (Schweiz)

REFERENCES

"Microsoft Word Developer's Kit," pages 258-259

Kbcategory: kbusage kbmacro KBSubcategory: Additional reference words: 6.00 6.00a appinfo language localized word6 winword international

Version           : 6.00 6.00a
Platform          : WINDOWS

Last Reviewed: August 4, 1997