Repository.Pool.UpdatePool

Updates the properties of a given spare part pool in the current project. Returns a Boolean value; when true, indicates a successful update.

Syntax
.Pool.UpdatePool(pool)

Parameters
pool
 * Required. The cPool object that represents the spare part pool 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)