Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

GroupCalc – PB Docs 2021 – PowerBuilder Library

GroupCalc – PB Docs 2021

GroupCalc

method (DataWindows)

Description

Recalculates the breaks in the grouping levels in a
DataWindow.

Applies to

DataWindow type

Method applies to

PowerBuilder

DataWindow control, DataWindowChild object, DataStore
object

Syntax

PowerBuilder

Argument

Description

dwcontrol

A reference to a DataWindow control, DataStore, or
child DataWindow

Return value

Returns 1 if it succeeds and -1 if an error occurs.

If dwcontrol is null, in PowerBuilder and JavaScript the method
returns null.

Usage

Use GroupCalc to force the DataWindow object to recalculate the
breaks in the grouping levels after you have added or modified rows in a
DataWindow.

GroupCalc does not sort the data before it recalculates the breaks.
Therefore, unless you populated the DataWindow in a sorted order, call the
Sort method to sort the data before you call GroupCalc.

Examples

This code imports new rows from a file into the DataWindow dw_emp
and then recalculates the group breaks for dw_emp:

See also

Sort


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x