Repository.Pool.UpdatePool

Applies any changes made to an existing spare part pool. 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 MyPool cPool MyRepository.Project.SetCurrentProject(1) MyPool = MyRepository.Pool.GetPool(1) MyPool.Name = MyRepository.Pool.UpdatePool(MyPool)

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