GetRawPhrase

(VTScada Layer module. Obtain LayerRoot using the following script-only statement: )

    LayerRoot = \System.GetLoadedAppInstance(GetGUID(0, \LocalGUID));
Description: Returns a phrase in the provided language, if it exists.
Returns: Text
Usage: Script or Steady State
Function Groups:

String and Buffer

Related to: GetParmPhrase | GetDatePhrase | GetTimePhrase
Format: LayerRoot.GetRawForLang(PhraseID, Language)
Parameters:  
PhraseID
Required. The identifying key for a phrase. May be either a string ID that uniquely identifies given text or a ParmPhrase structure, which consists of a PhraseID and up to 10 parameters.
LanguageID
Required text. Name of the language for which the phrase is to be found.
Comments:

Unlike \GetPhrase there is no defaulting to the default language or the PhraseID itself.

Also, this will not look at strings provided by subordinate applications.

Example:

  If Watch(1);
  [
    LayerRoot = System.GetLoadedAppInstance(GetGUID(0, \LocalGUID));
  ]
  Info = LayerRoot.GetRawPhrase("2Far18NearLabel", "EN");
  ZText(100,100,Info, 0, 0);