This method connects the RepVB Add-in to the specified repository. If another repository was previously connected, it is disconnected, and a RepositoryInvalid event is fired.
variable = object.ConnectRepository( connectOptions, user, password )
The ConnectRepository method has these parts:
Part | Description |
variable | A variable declared as a long integer. Receives the value zero if the connect was successful, nonzero otherwise. |
object | The variable name of the RepVB object. |
connectOptions | The ODBC connection string to be used for accessing the database server that hosts your repository. |
user | The user name to use for identification to the database server. This parameter is optional. |
password | The password that matches the user input parameter. This parameter is optional. |
When you connect to a repository, RepVB performs an automatic project synchronization for all open Visual Basic projects. This effectively adds the projects to the repository, if the repository to which you are connecting does not already contain information about the currently open projects.