Repository.Pool.GetPool

Returns a cPool object, which represents a spare part pool resource. Returns nothing if the spare part pool does not exist or is not in the current project.

Syntax
.Pool.GetPool(ID)

Parameters
ID
 * Required. Integer. The ID number of the spare part pool to retrieve.

Example
This example assumes that a spare part pool with ID #1 exists in the first project of a Synthesis repository. VBA MyRepository Repository MyRepository.ConnectToAccessRepository MyPool cPool MyRepository.Project.SetCurrentProject(1) MyPool = MyRepository.Pool.GetPool(1) PoolName String PoolID Integer PoolName = MyPool.Name PoolID = MyPool.ID  MsgBox ( & PoolName &  & PoolID)

VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository MyPool cPool MyRepository.Project.SetCurrentProject(1) MyPool = MyRepository.Pool.GetPool(1) PoolName String PoolID Integer PoolName = MyPool.Name PoolID = MyPool.ID MsgBox ( & PoolName &  & PoolID)