Documentation Center

PassoloApp.GetDefaultCodePage

Returns the default code page of a language.

Syntax

Expression.GetDefaultCodePage (LangID as Integer) as Long

Expression Required. Object of type PassoloApp

LangID Integer, Language ID as defined in the appendix of the SDL Passolo Reference Manual and used in Passolo to define source and target languages.

Example

...
Dim lang as Integer
...
Dim codepage As Integer
codepage = rd.SourceCodePage
If codepage = 0 Then
    codepage = PSL.GetDefaultCodePage(lang)
End If