PESetGroupCondition

Use PESetGroupCondition to change the group condition for a group section. Use this function whenever you want to change the grouping at print time, for example, to print one report grouped in several different ways.

C Syntax
BOOL CRPE_API PESetGroupCondition (
        short printJob,
        short sectionCode,
        const char FAR *conditionField,
        short condition,
        short sortDirection );
Parameters

printJob

Specifies the print job for which you want to change the group condition for a group section.

sectionCode

Specifies the code for the report section for which you want to set the group condition. See Working with section codes.

conditionField

Specifies a pointer to the name of the field that triggers a summary whenever its value changes. This parameter is a result of calling PEGetHandleString, with conditionFieldHandle and conditionFieldLength, returned by PEGetGroupCondition.

condition

Specifies the condition that will trigger a summary. Use one of the PE_GC_XXX Group Condition Constants. Note that the constants available are different for different field types.

sortDirection

Use one of the PE_SF_XXX Sort Order Constants.

Returns
Remarks
VB Syntax
Declare Function PESetGroupCondition Lib "crpe32.dll" (ByVal printJob As 
Integer, ByVal sectionCode As Integer, ByVal ConditionField As String, 
ByVal Condition As Integer, ByVal SortDirection As Integer) As Integer
Delphi Syntax
function PESetGroupCondition (
    printJob: Word;
    sectionCode: smallint;
    conditionField: PChar;
    condition: smallint;
    sortDirection: smallint
    ): Bool stdcall;
dBASE for Windows Syntax

EXTERN CLOGICAL PESetGroupCondition (CWORD, CWORD, CSTRING, CWORD, CWORD) CRPE.DLL



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com