CProfile.GetSegments

Returns an array of ProfileSegment objects that represent the segments in the profile.

Syntax
.GetSegments

Example
This example assumes that a profile with ID #1 exists in the first project of a Synthesis repository. VBA MyRepository Repository MyRepository.ConnectToAccessRepository Resource cProfile MyRepository.Project.SetCurrentProject(1) Resource = MyRepository.Profile.GetProfile(1) ListofSegments ProfileSegment ListofSegments = Resource.GetSegments MsgBox (ListofSegments(0).Value)

VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository Resource cProfile MyRepository.Project.SetCurrentProject(1) Resource = MyRepository.Profile.GetProfile(1) ListofSegments ProfileSegment ListofSegments = Resource.GetSegments MsgBox (ListofSegments(0).Value)