Basic.CodePage (property)

Syntax

Basic.CodePage

Description

Returns an Integer representing the code page for the current locale.

Comments

Basic.CodePage returns ANSI code page for the current locale, such as 437 for MS-DOS Latin US or 932 for Japanese.

Example

Sub Main

If Basic.OS = ebWin16 And Basic.CodePage = 437 Then

MsgBox "Running US Windows"

Else if Basic.OS = ebWin32 And Basic.CodePage = 932 Then

MsgBox "Japanese XP"

End If

End Sub

See Also

Basic.Locale$ (property); Basic.OS (property)

More information

B