Repository.Pool.UpdatePool

Sends any changes made to an existing spare part pool to the Synthesis repository. Returns a Boolean value; when true, indicates a successful save.

Syntax
.Pool.UpdatePool(pool)

Parameters
pool
 * Required. The cPool object to be updated.

Example
This example assumes that a spare part pool with ID #1 exists in the first available project of a repository.

VBA MyRepository Repository MyRepository.ConnectToAccessRepository MyPool cPool MyRepository.Project.SetCurrentProject(1) MyPool = MyRepository.Pool.GetPool(1) MyPool.Name = MyRepository.Pool.UpdatePool(MyPool)

VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository MyPool cPool MyRepository.Project.SetCurrentProject(1) MyPool = MyRepository.Pool.GetPool(1) MyPool.Name = MyRepository.Pool.UpdatePool(MyPool)