RAD Studio VCL Reference
|
Indicates where the current record sits within a specified group of records.
function GetGroupState(Level: Integer): TGroupPosInds;
__fastcall TGroupPosInds GetGroupState(int Level);
Call GetGroupState to determine where the current record falls in the group of records specified by the Level parameter.
Level identifies a group by its grouping level on the current index. Grouping level 1 is the set of records with the same value on the first field in the index. Grouping level 2 is the set of records with the same values on the first two fields in the index, and so on. If Level specifies a grouping level greater than the GroupingLevel property, GetGroupState raises an exception.
GetGroupState returns a set that indicates where the current record falls in the current grouping level. It has one of the following values:
Value |
Meaning |
[gbMiddle] |
The current record is neither the first nor the last in the group. |
[gbFirst] |
The current record is the first in the group, which contains at least two records. |
[gbLast] |
The current record is the last in the group, which contains at least two records. |
[gbFirst,gbLast] |
The current record is the only record in the group. |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|