Repository.Pool.UpdatePool

Updates the properties of an existing spare part pool in the current project. Changes are reflected in the repository immediately upon refresh. Returns a Boolean value; when true, indicates a successful update.

Syntax
.Pool.UpdatePool(pool)

Parameters
pool
 * The cPool object to be updated.

Example
This example assumes that a spare part pool with ID#1 exists in the 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)