Talk:Common Class/Notes: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) (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…') |
Kate Racaza (talk | contribs) No edit summary |
||
Line 23: | Line 23: | ||
MyRepository.ConnectToAccessRepository({{APIString|"C:\RSRepositoryx122g3.rsr10"}}) | MyRepository.ConnectToAccessRepository({{APIString|"C:\RSRepositoryx122g3.rsr10"}}) | ||
'''VB.NET''' | '''VB.NET''' |
Revision as of 18:45, 13 January 2016
Sets the API's display language; errors and warnings returned by the Synthesis repository to the API will be displayed in the specified language.
Syntax
SynthesisAPI.SetLanguage(Language)
Parameters
Language
- Required. The display language. Can be any 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 'Set the API's language to Portuguese Dim Lng As New cLanguage Lng.SetLanguage (Language_Portuguese) 'The following code will deliberately cause the connection to fail and return an error message. Dim MyRepository As New Repository Dim m As New cModel MyRepository.ConnectToAccessRepository("C:\RSRepositoryx122g3.rsr10")
VB.NET 'Set the API's language to Portuguese Dim Lng As New cLanguage Lng.SetLanguage (Language.Portuguese) 'The following code will deliberately cause the connection to fail and return an error message. Dim MyRepository As New Repository Dim m As New cModel MyRepository.ConnectToAccessRepository("C:\RSRepositoryx122g3.rsr10")