Repository.ConnectToAccessRepository: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:APIClass|Repository Class|Repository}}
{{Template:Repository.ConnectToAccessRepository.Cmt}} {{Template:BooleanReturn.Cmt}}
{{Template:Repository.ConnectToAccessRepository.Cmt}}  


== Syntax ==
== Syntax ==
*ConnectToAccessRepository( FileName {{APIPrefix|As String}} ) {{APIPrefix|As Boolean}}
*ConnectToAccessRepository({{APIPrefix|ByVal}} FileName {{APIPrefix|As String}}) {{APIPrefix|As Boolean}}


Parameters
Parameters
:''FileName'': The file path of the Synthesis repository you will connect to.
:''FileName'': The path to the Synthesis repository you will connect to.
 
{{Template:BooleanReturn.Cmt}}


== Usage Example ==
== Usage Example ==

Revision as of 17:16, 20 May 2015


Connects to an MS Access repository.

Syntax

  • ConnectToAccessRepository(ByVal FileName As String) As Boolean

Parameters

FileName: The path to the Synthesis repository you will connect to.

Returns True if successful, otherwise returns False.

Usage Example

 'Declare a new repository connection object. 
 Dim MyRepository As New Repository
 
 'Connect to the Synthesis repository. 
 Dim Success As Boolean = False
 Success = MyRepository.ConnectToAccessRepository("C:\Users\Name\Documents\ReliaSoft\Files\repository.rsr9")