Returns the group number and corresponding project file of the dialog/menu shown in the view.

Syntax:

GetGroupNumber( GroupNumber As Variant ) As ProjectFile
Return: ProjectFile
Parameters: GroupNumber The function stores the number of the group shown in the resource view in this parameter of the type "Variant."

Example:
Dim ResViews As ResourceViews
Dim ResView As ResourceView
Dim ProjFile As ProjectFile
Dim GroupNo As Variant

Set ResViews = Application.ActiveProject.ProjectDocument.ResourceViews

For Each ResView In ResViews
    Set ProjFile = ResView.GetGroupNumber(GroupNo)
Next ResView

Remarks: The parameter "GroupNumber" is of the type "Variant." Usage of this method in VBScript is therefore also possible.

See also:

Class ResourceView


Last Updated: 04/27/05