RVA_GetS, RVA_GetSH, RVA_GetPC Functions

Top  Previous  Next

This method returns a localized string.

Unit RVALocalize.

type

  TRVAMessageID = (rvam_Empty, rvam_menu_File, rvam_menu_Edit, ...);

function RVA_GetS(MsgID: TRVAMessageID): String;

function RVA_GetSH(MsgID: TRVAMessageID): String;

function RVA_GetPC(MsgID: TRVAMessageID): PChar;

These functions returns strings corresponding to MsgID, translated to the current language.

The name of the current language is returned as TRVAControlPanel.Language, or by RVA_GetLanguageName function.

The current language can be changed by assigning a new value to TRVAControlPanel.Language, or by calling RVA_SwitchLanguage procedure.

RVA_GetS just returns a string.

RVA_GetSH(MsgId) returns ' '+RVA_GetS(MsgId)+' ' (used for assigning to captions of radio groups and group boxes).

RVA_GetPC returns the same value as RVA_GetS, but not as a String but as PChar.


RichView © Sergey Tkachenko