Repository.Pool.UpdatePool: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 26: Line 26:
         ListOfPools = MyRepository.GetAllPools()
         ListOfPools = MyRepository.GetAllPools()


{{APIComment|After modifying the Pool, Update the repository.}}
{{APIComment|After modifying the Pool, update the repository.}}
         Dim SuccessUpdatePool As Boolean = False
         Dim SuccessUpdatePool As Boolean = False
         SuccessUpdatePool = MyRepository.UpdatePool(ListOfPools(0))
         SuccessUpdatePool = MyRepository.UpdatePool(ListOfPools(0))

Revision as of 00:39, 27 September 2013


Updates the spare parts Pool

Method Syntax

UpdatePool( ByVal pool As cPool) As Boolean
Updates the spare parts Pool in the repository.

Parameters

pool The pool to update in the repository.

Usage Example

Declare a new repository connection class.

       Private WithEvents MyRepository As New Repository

Connect to the Synthesis repository.

       Dim Success As Boolean = False
       Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")

Get the list of Pools in the connected repository.

       Dim ListOfPools() As cPool
       ListOfPools = MyRepository.GetAllPools()

After modifying the Pool, update the repository.

       Dim SuccessUpdatePool As Boolean = False
       SuccessUpdatePool = MyRepository.UpdatePool(ListOfPools(0))