CLanguage.SetLanguage: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) mNo edit summary |
Kate Racaza (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Template:API}}{{Template: | {{Template:API}}{{Template:APIBreadcrumb|10}} | ||
<onlyinclude>Sets the language | <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. (VB.NET only)</onlyinclude> | ||
==Syntax== | ==Syntax== | ||
Line 9: | Line 9: | ||
====Parameters==== | ====Parameters==== | ||
''Language'' | ''Language'' | ||
:Required. The language | :Required. The display language. Can be any [[Language_Enumeration|Language]] constant. | ||
==Example == | ==Example == | ||
The following example returns an error message in Portuguese. | |||
'''VB.NET''' | '''VB.NET''' | ||
{{APIComment|'Set the language to Portuguese}} | {{APIComment|'Set the API's language to Portuguese}} | ||
SynthesisAPI.SetLanguage(SynthesisAPI.Language.Portuguese) | |||
{{APIComment|'The following code sample triggers the Synthesis repository to return an error message.}} | |||
{{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository | |||
{{APIPrefix|Dim}} m {{APIPrefix|As New}} cModel | |||
MyRepository.ConnectToAccessRepository({{APIString|"C:\RSRepository1.rsr10"}}) | |||
m = MyRepository.Model.GetModel(47) |
Revision as of 17:14, 27 October 2015
Member of: SynthesisAPI10
Sets the API's display language. Errors and warnings returned by the Synthesis repository to the API will be displayed in the specified language. (VB.NET only)
Syntax
SynthesisAPI.SetLanguage(Language)
Parameters
Language
- Required. The display language. Can be any Language constant.
Example
The following example returns an error message in Portuguese.
VB.NET 'Set the API's language to Portuguese SynthesisAPI.SetLanguage(SynthesisAPI.Language.Portuguese) 'The following code sample triggers the Synthesis repository to return an error message. Dim MyRepository As New Repository Dim m As New cModel MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr10") m = MyRepository.Model.GetModel(47)