Repository.Pool.UpdatePool: Difference between revisions
Jump to navigation
Jump to search
John Leavitt (talk | contribs) No edit summary |
Albert Szeto (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
== Property Syntax == | == Property Syntax == | ||
{{APIName|UpdatePool(}} | |||
{{APIPrefix|ByVal}} | |||
{{APIName|pool}} | |||
{{APIPrefix|As}} | |||
{{APIName|[[cPool Class|cPool]])}} | |||
{{APIPrefix|As Boolean}}<br> | |||
{{APIComment|Updates the spare parts Pool in the repository.}} | |||
{{ | == Parameters == | ||
'''pool''' | |||
{{APIComment|The pool to update in the repository.}} | |||
== Usage Example == | |||
{{APIComment|Declare a new repository connection class.}} | |||
Private WithEvents MyRepository As New Repository | |||
{{APIComment|Connect to the Synthesis repository.}} | |||
Dim Success As Boolean = False | |||
Success = MyRepository.ConnectToRepository("RepositoryFileNamePath") | |||
{{APIComment|Get the list of Pools in the connected repository.}} | |||
Dim ListOfPools() As [[cPool Class|cPool]] | |||
ListOfPools = MyRepository.GetAllPools() | |||
{{APIComment|After modifying the Pool, Update the repository.}} | |||
Dim SuccessUpdatePool As Boolean = False | |||
SuccessUpdatePool = MyRepository.UpdatePool(ListOfPools(0)) |
Revision as of 21:36, 19 September 2013
Property 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))