Talk:Common Class/Notes: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '<onlyinclude>Sets the API's display language; errors and warnings returned by the Synthesis repository to the API will be displayed in the specified language.</onlyinclude> ==Sy…')
 
(Applied V10.1 updates to main topic)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>Sets the API's display language; errors and warnings returned by the Synthesis repository to the API will be displayed in the specified language.</onlyinclude>


==Syntax==
'''SynthesisAPI.SetLanguage'''(''Language'')
====Parameters====
''Language''
:Required. The display language. Can be any [[Language_Enumeration|Language]] constant.
==Example ==
This example assumes that a file called "RSRepository1.rsr10" exists in the C: drive. To demonstrate the method's functionality, the code deliberately returns an error message in Portuguese.
  '''VBA'''
{{APIComment|'Set the API's language to Portuguese}}
  {{APIPrefix|Dim}} Lng {{APIPrefix|As New}} cLanguage
  Lng.SetLanguage (Language_Portuguese)
{{APIComment|'The following code will deliberately cause the connection to fail and return an error message.}}
  {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
  {{APIPrefix|Dim}} m {{APIPrefix|As New}} cModel
  MyRepository.ConnectToAccessRepository({{APIString|"C:\RSRepositoryx122g3.rsr10"}})
  '''VB.NET'''
{{APIComment|'Set the API's language to Portuguese}}
  {{APIPrefix|Dim}} Lng {{APIPrefix|As New}} cLanguage
  Lng.SetLanguage (Language.Portuguese)
{{APIComment|'The following code will deliberately cause the connection to fail and return an error message.}}
  {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
  {{APIPrefix|Dim}} m {{APIPrefix|As New}} cModel
  MyRepository.ConnectToAccessRepository({{APIString|"C:\RSRepositoryx122g3.rsr10"}})

Latest revision as of 15:43, 1 March 2016