Visual Patch 3.9

Application.GetLanguage

Application.GetLanguage

This is the first topic This is the last topic  

Application.GetLanguage

This is the first topic This is the last topic  

OverviewExamples

table Application.GetLanguage (

)

Example 1

tPatchLanguage = Application.GetLanguage();

Retrieves the primary and secondary patch language, and stores this information in a table called "tPatchLanguage".  This information can be accessed by referencing tPatchLanguage.Primary and tPatchLanguage.Secondary.

Example 2

-- Retrieve the Patch Language

tPatchLanguage = Application.GetLanguage();

 

-- Check if the patch language is English (English = 9)

if tPatchLanguage.Primary == 9 then

   -- Patch language is English

   Dialog.Message("Patch Language", "Your patch language is English!");

else

   -- Patch language is not English

   Dialog.Message("Patch Language", "Your patch language is not English!");

end

Retrieves the patch language, compares the primary ID to the value representing English (9), and displays an appropriate message.

See also: Related Actions


Learn More: Indigo Rose Software - Visual Patch - Buy Now - Contact Us