|
of_selectedcount
|
|
Full name
|
pfc_n_cst_dwsrv_rowselection.of_selectedcount
|
Access
|
public
|
Extend of
|
long
|
Return value
|
long
|
Prototype
|
public function long of_selectedcount(ref long[])
|
Name
|
Datatype
|
ll_counter
|
long
|
ll_selected
|
long
|
public function long of_selectedcount (ref long al_selectedrows[]);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SelectedCount
//
// Access: Public
//
// Arguments: none
//
// Returns: Long
// The number of selected rows in the datawindow.
// -1 if an error occurs
//
// Description: Count selected rows.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
long ll_selected=0
long ll_counter=0
//Check for any requirements.
If IsNull(idw_requestor) Or Not IsValid(idw_requestor) Then Return -1
//Loop and count the number of selected rows.
DO
ll_selected = idw_requestor.GetSelectedRow ( ll_selected )
IF ll_selected > 0 THEN
ll_counter++
al_selectedrows[ll_counter] = ll_selected
END IF
LOOP WHILE ll_selected > 0
Return ll_counter
end function
Name
|
Owner
|
datawindow.getselectedrow |
datawindow
|
systemfunctions.isnull |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|