CLanguage.SetLanguage: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) mNo edit summary |
Kate Racaza (talk | contribs) m (moved Common Class to CLanguage.SetLanguage: V10.1 update. Moved page to consolidate information and improve docs, as per SYN-I-4864.) |
(No difference)
|
Revision as of 00:08, 1 March 2016
Member of: SynthesisAPI
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
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.
VB.NET 'Set the API's language to Portuguese SynthesisAPI.SetLanguage(SynthesisAPI.Language.Portuguese) 'The following code will deliberately cause 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)