TranslateConstant

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalString TranslateConstant( SalString sConstant )

The TranslateConstant method returns the translation of a translatable constant.

Parameters

Name Description
SalString sConstant The translatable constant to translate.

Returns

The return value is the translation, or the original text if no translation was found.

Comments

A translatable constant is a constant whose value begins with the constant name, a colon, and a space. For example public const string TEXT_Hello = "TEXT_Hello: Hello world!" ;
 

Example

Call SalSetWindowTilte( i_hWndFrame, sCompany 
	|| ' - ' || TranslateConstant( TEXT_NAV_Customer ) )
Call SalSetWindowTilte( i_hWndFrame, sCompany || ' - ' ||
        TranslateConstant( TEXT_NAV_Customer ) )
C# coding
Sal.SetWindowText(pbAnalyze, Int.TranslateConstant(Const.TEXT_AnalyzeStart));